2 @echo "Now you can run './configure'"
13 .PHONY: default git all dist dist-tarball
15 VER=$(shell git describe --match='v[0-9]*' | sed -e 's/^v\(.*\)/\1/')
17 CONFIGURE_FLAGS = --enable-orte-idl
22 $(MAKE) -f Makefile.git check-windows check-autotools check-java
26 $(MAKE) -C _check-win -f ../Makefile.git $@.real
29 # We don't have libIDL for mingw, so we check without --enable-orte-idl
30 ../configure --host=i586-mingw32msvc CC=i586-mingw32msvc-gcc || \
31 ../configure --host=i686-w64-mingw32 CC=i686-w64-mingw32-gcc
33 find -name 'liborte*.dll'
36 mkdir -p _check-autotools
37 cd _check-autotools && ../configure $(CONFIGURE_FLAGS)
38 cd _check-autotools && $(MAKE)
40 check-java: JAVAC=$(shell readlink -f $(which javac))
41 check-java: JAVA_HOME=$(JAVAC:%/bin/javac=%)
44 cd _check-java && ../configure --with-java=$(JAVA_HOME)
45 cd _check-java && $(MAKE)
46 false # Java is not compiled - either fix it or update README
49 $(MAKE) VER=$(VER) dist-tarball dist-check
50 @echo "Tarball stored as orte-$(VER).tar.gz"
52 dist-tarball: orte-$(VER).tar.gz
54 orte-$(VER).tar.gz: $(shell git ls-files)
55 # Export clean sources and run autoreconf
57 git archive --format=tar --prefix=orte-$(VER)/ HEAD | tar x
58 make -C orte-$(VER) -f Makefile.cvs
59 rm -rf orte-$(VER)/autom4te.cache
60 # Export sources again for building of documentation and copy generated orte manual to release dir
61 test ! -d orte-$(VER)-doc
62 git archive --format=tar --prefix=orte-$(VER)-doc/ HEAD | tar x
63 make -C orte-$(VER)-doc/doc
64 cp orte-$(VER)-doc/doc/orteman.pdf orte-$(VER)/doc
65 rm -rf orte-$(VER)-doc
67 tar czf $@ orte-$(VER)
69 @echo "Tarball stored as orte-$(VER).tar.gz"
71 dist-check: orte-$(VER).tar.gz
73 # Check that we can compile the content of the tarball
74 mkdir orte-$(VER)/_build
75 cd orte-$(VER)/_build && ../configure $(CONFIGURE_FLAGS) && make V=0
76 mkdir orte-$(VER)/_win
77 cd orte-$(VER)/_win && ../configure --host=i686-w64-mingw32 CC=i686-w64-mingw32-gcc $(CONFIGURE_FLAGS) && make V=0