-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathMakefile
46 lines (36 loc) · 1.17 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
VER=0.61
#
.PHONY : doc code sync
all: code doc ec2 index
sync:
cp a.css website/
rsync -av website/ [email protected]:~/.www/rhipe/
ssh [email protected] 'fixwww'
index: doc
/Applications/Aquamacs.app/Contents/MacOS/Aquamacs -l index2html.el
# mv index.html website/#
ec2:
rsync -av code/hadoop-ec2-init-remote.sh website/dn/
code:
sed -i "" "s/Version: [0-9]*\.*[0-9]*/Version: ${VER}/" code/R/DESCRIPTION
sed -i "" "s/vvvv <- \"[0-9]*\.*[0-9]*\"/vvvv <- \"${VER}\"/" code/R/R/zzz.R
if test -d build;then rm -rf build;else mkdir build; fi
rsync -a code/ build/
ant -f build/build.xml clean
ant -f build/build.xml
ant -f build/build.xml clean
cd
# mv build/R build/Rhipe
# tar -czf Rhipe_${VER}.tar.gz -C build/ Rhipe
R CMD BUILD build/R
mv Rhipe_${VER}.tar.gz website/dn/
cp website/dn/Rhipe_${VER}.tar.gz website/dn/rhipe.tar.gz
rm -rf build
doc:
sed -i "" "/^[(version)|(release)]/ s/\"[0-9]*\.*[0-9]*\"/\"${VER}\"/" doc/conf.py
make -C doc -f Makefile html latex
make -C doc/_build/latex -f Makefile all-pdf
rsync -av doc/_build/html/ website/doc/html/
rsync -av doc/_build/latex/RHIPE.pdf website/doc/
clean:
rm -rf doc/build