-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
39 lines (36 loc) · 848 Bytes
/
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
.PHONY: ct cat com push gt checkpkg clean remove aareload
PKG=phylosim_3.0.0.tar.gz
ct:
git log --graph
cat: *.R
(rm PhyloSimSource.R;cat *.R > PhyloSimSource.R;true)
com: *.R
git commit -a
push:
git push --all
fetch:
git fetch --all
gt:
gitk --all
sc: *.R
(rm -f pkg/R/*.R;true)
cp *.R pkg/R/
rd: *.R
( cd pkg/; R --vanilla < ../misc/compileman.R; perl ../misc/RdClean.pl)
pkg: cat sc *.R
(rm PhyloSimSource.R;true)
cp PAMLdat/*.dat pkg/inst/extdata/
cp RData/* pkg/data/
R CMD build --compact-vignettes=both pkg
checkpkg: pkg
R CMD check --as-cran $(PKG)
clean:
(rm *.log; rm $(PKG);rm -r ./phylosim.Rcheck;rm ./pkg/R/*.R;true ) 2>&1 > /dev/null
inst: pkg
R CMD INSTALL $(PKG)
remove:
R CMD REMOVE phylosim
aareload: cat
(rm RData/*;true)
R --vanilla < misc/recreate_aamodels.R
R --vanilla < misc/recreate_codonmodels.R