]> rtime.felk.cvut.cz Git - orte.git/blob - Makefile.cvs
Put compiled ORTE manual to the distribution tarballs
[orte.git] / Makefile.cvs
1 default: cvs
2
3 cvs:
4         autoreconf -i 
5
6 all:
7         aclocal -I admin 
8         autoheader
9         automake
10         autoconf
11
12 dist: VER=$(shell git describe --match='v*' | sed -e 's/^v\(.*\)/\1/')
13 dist:
14 # Export clean sources and run autoreconf
15         test ! -d orte-$(VER)
16         git archive --format=tar --prefix=orte-$(VER)/ HEAD | tar x
17         make -C orte-$(VER) -f Makefile.cvs
18         rm -rf orte-$(VER)/autom4te.cache
19 # Export sources again for building of documentation and copy generated orte manual to release dir
20         test ! -d orte-$(VER)-doc
21         git archive --format=tar --prefix=orte-$(VER)-doc/ HEAD | tar x
22         make -C orte-$(VER)-doc/doc
23         cp orte-$(VER)-doc/doc/orteman.pdf orte-$(VER)/doc
24         rm -rf orte-$(VER)-doc
25 # Create tarball
26         tar czf orte-$(VER).tar.gz orte-$(VER)
27 # Check that we can compile the content of the tarball
28         cd orte-$(VER) && ./configure && make
29 # Done
30         rm -rf orte-$(VER)
31         @echo "Tarball stored as orte-$(VER).tar.gz"