Commit 796ee84e authored by Alexandros Kosiaris's avatar Alexandros Kosiaris
Browse files

Update Makefile to be more generic and more version number friendly

parent 441a2d31
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment