-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
executable file
·60 lines (44 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Linux needs Administrator Passwords to Install R packages
ifeq ($(OS),Windows_NT)
RINSTCMD := R CMD INSTALL
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
RINSTCMD := R CMD INSTALL
endif
ifeq ($(UNAME_S),Darwin)
RINSTCMD := R CMD INSTALL
endif
endif
# http://stackoverflow.com/questions/1789594/how-to-write-cd-command-in-makefile
## Make sure that make does not think
## that the rules are associated to an actual file
.PHONY: all Tcl R Python website clean debug
all: Tcl R Python website
Tcl:
echo "Make Tcl Package\n-----------" && \
cd Tcl && ./makePkgIndex.tcl && cd ..
R: copyTcl2R rdoc rbuild rinst
Python: copyTcl2Python
copyTcl2R:
./copyTcl2R.sh
copyTcl2Python:
./copyTcl2Python.sh
rdoc:
cd R && \
R -e "library(devtools); devtools::document(roclets=c('rd', 'namespace'))" && \
cd ../
rbuild:
R CMD build R --no-build-vignettes
rinst:
$(RINSTCMD) loon_1.3.2.tar.gz
website:
rsync -av --delete R/vignettes/images/ ./docs/articles/images && \
cd website && \
tclsh makeWebsite.tcl && \
cd .. && \
rsync -av --delete website/html/ ./docs/l_help/ && \
rm ./docs/l_help/.gitignore
debug:
tclsh8.6 debug.tcl
clean: