summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2022-10-02 14:03:00 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2022-10-02 14:32:21 +0200
commitc3e314a93715710d463bf702cb7206239864cff4 (patch)
tree1f886fa17d28a1bd5e02cb3760ac302ad917afce
parent8c42ec4ccab98196fb5ebfeeb3556a26a25ff514 (diff)
downloadsigrok-dumps-c3e314a93715710d463bf702cb7206239864cff4.tar.gz
sigrok-dumps-c3e314a93715710d463bf702cb7206239864cff4.zip
Makefile: explicitly list which example capture subdirs to install
Commit 4fafe8159940 as of 2012-05-14 introduced a simple "make install" target. The asterisk wildcard and the additional Makefile "negation" use to work for clean checkouts, but are considered too greedy a pattern for locally modified work areas during development. Explicitly list which subdirs to install to the filesystem. Which improves robustness, avoids clutter, and is considered acceptable maintenance overhead since adding more top level directories should be rare an event. The explicit list is also easy to trim down should developers want that during local work. Phrase the subdirectories list such that users can specify additional items in the "make install" invocation.
-rw-r--r--Makefile32
1 files changed, 29 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 349760d..76458ae 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,34 @@ VERSION = "0.1.0"
DESTDIR ?= /usr/local/share/sigrok-dumps
+# Be explicit about which files or subdirectories to install.
+# Update this list when adding a new top level subdirectory to the
+# set of example captures. It's assumed that this event is rare.
+# The list is phrased such that users can specify additional items
+# when they invoke the 'make install' command.
+FILES_DIRS += ac97 am230x arm_trace aud avr_isp avr_pdi
+FILES_DIRS += caliper can cec
+FILES_DIRS += dac dali dcc dcf77 display dmx512 dsi
+FILES_DIRS += flexray fsk
+FILES_DIRS += gpib graycode
+FILES_DIRS += i2c i2s ir
+FILES_DIRS += jtag
+FILES_DIRS += led lens_mounts lpc
+FILES_DIRS += maple_bus mcs48 mdio microwire miller misc morse mouse_sensors
+FILES_DIRS += nfc nonstandard_eeproms
+FILES_DIRS += onewire ook
+FILES_DIRS += pjon ps2 pwm
+FILES_DIRS += qi
+FILES_DIRS += rc rfid
+FILES_DIRS += sae-j1850 sdcard sdq sht7x signature sle44xx spdif spi
+FILES_DIRS += stepper_motor swd swim
+FILES_DIRS += tdm_audio
+FILES_DIRS += uart usb usb_power_delivery
+FILES_DIRS += vfd
+FILES_DIRS += wiegand
+FILES_DIRS += xy2-100
+FILES_DIRS += z80
+
all:
@echo "Run 'make dist' to create a tarball."
@@ -35,6 +63,4 @@ dist: ChangeLog
install:
@mkdir -p $(DESTDIR)
- @cp -r * $(DESTDIR)
- @rm -f $(DESTDIR)/Makefile
-
+ @cp -r $(FILES_DIRS) $(DESTDIR)