-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
27 lines (20 loc) · 840 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
RELEASE=3.15
HTML=${HOME}/public_html/
.PHONY: doc tarball
tarball:
git archive --format=tar --prefix=tree-${RELEASE}/ HEAD | gzip > ${HOME}/tmp/tree-${RELEASE}.tar.gz
site: tarball doc
install -d ${HTML}/tree
install -d ${HTML}/tree/doxygen/html
install doc/index.html doc/download.html doc/projects.html doc/documentation.html doc/tree.css doc/tree.jpg ChangeLog ${HTML}/tree
install src/test_tree.cc src/test_tree.output src/tree_example.cc src/tree.hh src/tree_util.hh ${HTML}/tree
install doxygen/html/* ${HTML}/tree/doxygen/html
install ${HOME}/tmp/tree-${RELEASE}.tar.gz ${HTML}/tree
install ${HOME}/tmp/kt_temp/kt_temp_tree/tree.pdf ${HTML}/tree
upload:
rsync -avz ${HTML}/tree/ fq2:/var/www/tree/
doc:
(cd doc; kt -f tree.tex)
doxygen doc/doxygen_tree.config
test_tree: test_tree.o
g++ -o test_tree test_tree.o