X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile;h=f016d358c1db510854a8f94cde3f2516d97d81d1;hb=305aa3830af6786dc3a4c0df094c8725fb33a244;hp=0a7e90340ced580a97c2a6067bd382f926a59d84;hpb=8bf853f8bed543b864d9392a67b7c4b8a2f29563;p=sigrok-dumps.git diff --git a/Makefile b/Makefile index 0a7e903..f016d35 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,22 @@ 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-$(VERSION).tar.gz \ -f sigrok-dumps-$(VERSION).tar.gz * + @rm -f ChangeLog + +install: + @mkdir -p $(DESTDIR) + @cp -r * $(DESTDIR) + @rm -f $(DESTDIR)/Makefile