From: Uwe Hermann Date: Mon, 14 May 2012 20:55:55 +0000 (+0200) Subject: Makefile: Add a simple 'install' target. X-Git-Tag: sigrok-dumps-0.1.0~1 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4fafe8159940fb0c2f93b180361d4f79f7785095;p=libsigrokdecode.git Makefile: Add a simple 'install' target. --- diff --git a/Makefile b/Makefile index 7dea2f8..f016d35 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,8 @@ VERSION = "0.1.0" +DESTDIR ?= /usr/local/share/sigrok-dumps + all: @echo "Run 'make dist' to create a tarball." @@ -32,3 +34,8 @@ dist: ChangeLog -f sigrok-dumps-$(VERSION).tar.gz * @rm -f ChangeLog +install: + @mkdir -p $(DESTDIR) + @cp -r * $(DESTDIR) + @rm -f $(DESTDIR)/Makefile +