12 dist: VER=$(shell git describe --match='v*' | sed -e 's/^v\(.*\)/\1/')
14 # Export clean sources and run autoreconf
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
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
31 @echo "Tarball stored as orte-$(VER).tar.gz"