Added a preliminary draft for a Makefile facilitating various jobs
[flowspy] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..0dd47e7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+flowspytag = $(shell git describe --abbrev=0)
+flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]\.){1,10}[0-9]')
+
+.PHONY: dist distclean
+
+dist: 
+       git archive --format tar --prefix flowspy-$(flowspyver)/ -o flowspy-$(flowspyver).tar $(flowspytag)
+       gzip -f flowspy-$(flowspyver).tar
+distclean:
+       @rm -f *tar.gz
+