2 @echo "Now you can run './configure'"
13 .PHONY: default cvs all dist dist-tarball
15 VER=$(shell git describe --match='v[0-9]*' | sed -e 's/^v\(.*\)/\1/')
18 $(MAKE) VER=$(VER) dist-tarball dist-check
19 @echo "Tarball stored as orte-$(VER).tar.gz"
21 dist-tarball: orte-$(VER).tar.gz
23 orte-$(VER).tar.gz: $(shell git ls-files)
24 # Export clean sources and run autoreconf
26 git archive --format=tar --prefix=orte-$(VER)/ HEAD | tar x
27 make -C orte-$(VER) -f Makefile.cvs
28 rm -rf orte-$(VER)/autom4te.cache
29 # Export sources again for building of documentation and copy generated orte manual to release dir
30 test ! -d orte-$(VER)-doc
31 git archive --format=tar --prefix=orte-$(VER)-doc/ HEAD | tar x
32 make -C orte-$(VER)-doc/doc
33 cp orte-$(VER)-doc/doc/orteman.pdf orte-$(VER)/doc
34 rm -rf orte-$(VER)-doc
36 tar czf $@ orte-$(VER)
38 @echo "Tarball stored as orte-$(VER).tar.gz"
40 dist-check: orte-$(VER).tar.gz
42 # Check that we can compile the content of the tarball
43 mkdir orte-$(VER)/_build
44 cd orte-$(VER)/_build && ../configure && make V=0
45 mkdir orte-$(VER)/_win
46 cd orte-$(VER)/_win && ../configure --host=i686-w64-mingw32 CC=i686-w64-mingw32-gcc && make V=0