]> sigrok.org Git - sigrok-dumps.git/commitdiff
Makefile: Add a simple 'install' target.
authorUwe Hermann <redacted>
Mon, 14 May 2012 20:55:55 +0000 (22:55 +0200)
committerUwe Hermann <redacted>
Mon, 14 May 2012 20:55:55 +0000 (22:55 +0200)
Makefile

index 7dea2f86065f42e47c4b3e406262d80b93e7c845..f016d358c1db510854a8f94cde3f2516d97d81d1 100644 (file)
--- 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
+