X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile;h=954b9856dfc03457845e26e991235a5b50397e52;hb=3b25efe5be898dcb4d27ee4f2cb53b4a49ef56ea;hp=b8ae63e6774ffd8e65e3edcf38f14efd6b94bebf;hpb=ad011ff31ff6a418877278ef3b006c89ca17b9c8;p=sigrok-dumps.git diff --git a/Makefile b/Makefile index b8ae63e..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 ## @@ -20,11 +20,22 @@ VERSION = "0.1.0" +DESTDIR ?= /usr/local/share/sigrok-dumps + all: @echo "Run 'make dist' to create a tarball." -dist: +ChangeLog: + git log > ChangeLog || touch ChangeLog + +dist: ChangeLog @tar -c -v -z --exclude=.git --exclude=Makefile \ --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