]> rtime.felk.cvut.cz Git - orte.git/blobdiff - Makefile.cvs
JORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
[orte.git] / Makefile.cvs
index 8e96a3d3a4db9dc918f96960291b929e0830328e..82fbffc4f4eaa5e5dd058d023faea11f3f338fff 100644 (file)
@@ -1,4 +1,8 @@
-default: all
+default: cvs
+       @echo "Now you can run './configure'"
+
+cvs:
+       autoreconf -i 
 
 all:
        aclocal -I admin 
@@ -6,3 +10,23 @@ all:
        automake
        autoconf
 
+dist: VER=$(shell git describe --match='v*' | sed -e 's/^v\(.*\)/\1/')
+dist:
+# Export clean sources and run autoreconf
+       test ! -d orte-$(VER)
+       git archive --format=tar --prefix=orte-$(VER)/ HEAD | tar x
+       make -C orte-$(VER) -f Makefile.cvs
+       rm -rf orte-$(VER)/autom4te.cache
+# Export sources again for building of documentation and copy generated orte manual to release dir
+       test ! -d orte-$(VER)-doc
+       git archive --format=tar --prefix=orte-$(VER)-doc/ HEAD | tar x
+       make -C orte-$(VER)-doc/doc
+       cp orte-$(VER)-doc/doc/orteman.pdf orte-$(VER)/doc
+       rm -rf orte-$(VER)-doc
+# Create tarball
+       tar czf orte-$(VER).tar.gz orte-$(VER)
+# Check that we can compile the content of the tarball
+       cd orte-$(VER) && ./configure && make
+# Done
+       rm -rf orte-$(VER)
+       @echo "Tarball stored as orte-$(VER).tar.gz"