]> sigrok.org Git - sigrok-firmware.git/blobdiff - Makefile
Makefile: s/sigrok-firmware/sigrok-firmwares/.
[sigrok-firmware.git] / Makefile
index 26025c77a60a0b1b8be155a706332fdb2a5933b0..18829b6a4534aea32872aaef88ec548cd8d27238 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."
 
@@ -28,7 +30,11 @@ ChangeLog:
 
 dist: ChangeLog
        @tar -c -v -z --exclude=.git --exclude=Makefile \
-               --exclude=sigrok-firmware-$(VERSION).tar.gz \
-               -f sigrok-firmware-$(VERSION).tar.gz *
+               --exclude=sigrok-firmwares-$(VERSION).tar.gz \
+               -f sigrok-firmwares-$(VERSION).tar.gz *
        @rm -f ChangeLog
 
+install:
+       @mkdir -p $(DESTDIR)
+       @cp */*.fw $(DESTDIR)
+