]> sigrok.org Git - sigrok-firmware.git/commitdiff
Add 'make install' target.
authorUwe Hermann <redacted>
Wed, 23 May 2012 16:45:34 +0000 (18:45 +0200)
committerUwe Hermann <redacted>
Thu, 24 May 2012 08:57:39 +0000 (10:57 +0200)
Makefile

index 26025c77a60a0b1b8be155a706332fdb2a5933b0..1f576b8e8b9700f2642c42b323784722b54c517e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,8 @@
 
 VERSION = "0.1.0"
 
+DESTDIR ?= /usr/local/share/libsigrok/firmware
+
 all:
        @echo "Run 'make dist' to create a tarball."
 
@@ -32,3 +34,7 @@ dist: ChangeLog
                -f sigrok-firmware-$(VERSION).tar.gz *
        @rm -f ChangeLog
 
+install:
+       @mkdir -p $(DESTDIR)
+       @cp */*.fw $(DESTDIR)
+