Translation fixes/additions
[flowspy] / Makefile
index 0dd47e7..8eef461 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
 flowspytag = $(shell git describe --abbrev=0)
-flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]\.){1,10}[0-9]')
+flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]+\.){1,10}[0-9]+')
+name              = $(shell basename $(shell pwd))
 
 .PHONY: dist distclean
 
 dist: 
-       git archive --format tar --prefix flowspy-$(flowspyver)/ -o flowspy-$(flowspyver).tar $(flowspytag)
-       gzip -f flowspy-$(flowspyver).tar
+       git archive --format tar --prefix $(name)-$(flowspyver)/ -o $(name)-$(flowspyver).tar $(flowspytag)
+       gzip -f $(name)-$(flowspyver).tar
 distclean:
        @rm -f *tar.gz