]> rtime.felk.cvut.cz Git - orte.git/blobdiff - Makefile.cvs
ROBOT_DEMO: fix sync. problems in HokuyoView
[orte.git] / Makefile.cvs
index 00b7f678d0be17b840347fde226268201055f0e8..f0bf515928a6405979450ac4bf7c5f6f1dde0a23 100644 (file)
@@ -1,8 +1,31 @@
-default: all
+default: cvs
+
+cvs:
+       autoreconf -i 
 
 all:
-       aclocal -I admin
+       aclocal -I admin 
        autoheader
        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"