X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile;h=954b9856dfc03457845e26e991235a5b50397e52;hb=e0733be5541e70545a4926ec56eaed0a3f30a72c;hp=715d54ac312d89b23276e929243a770cc64cdb9e;hpb=b90bb15123082d9b127a82419f06a5cbcf192ab5;p=sigrok-dumps.git diff --git a/Makefile b/Makefile index 715d54a..954b985 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ## -## This file is part of the sigrok project. +## This file is part of the sigrok-dumps project. ## ## Copyright (C) 2012 Uwe Hermann ## @@ -18,12 +18,24 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -d=`date "+%Y%m%d"` +VERSION = "0.1.0" -all: tarball +DESTDIR ?= /usr/local/share/sigrok-dumps -tarball: +all: + @echo "Run 'make dist' to create a tarball." + +ChangeLog: + git log > ChangeLog || touch ChangeLog + +dist: ChangeLog @tar -c -v -z --exclude=.git --exclude=Makefile \ - --exclude=sigrok-dumps-$(d).tar.gz \ - -f sigrok-dumps-$(d).tar.gz * + --exclude=sigrok-dumps-$(VERSION).tar.gz \ + -f sigrok-dumps-$(VERSION).tar.gz * + @rm -f ChangeLog + +install: + @mkdir -p $(DESTDIR) + @cp -r * $(DESTDIR) + @rm -f $(DESTDIR)/Makefile