]>
Commit | Line | Data |
---|---|---|
b90bb151 | 1 | ## |
f5915307 | 2 | ## This file is part of the sigrok-dumps project. |
b90bb151 UH |
3 | ## |
4 | ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> | |
5 | ## | |
6 | ## This program is free software; you can redistribute it and/or modify | |
7 | ## it under the terms of the GNU General Public License as published by | |
8 | ## the Free Software Foundation; either version 2 of the License, or | |
9 | ## (at your option) any later version. | |
10 | ## | |
11 | ## This program is distributed in the hope that it will be useful, | |
12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ## GNU General Public License for more details. | |
15 | ## | |
16 | ## You should have received a copy of the GNU General Public License | |
7c43d7c6 | 17 | ## along with this program; if not, see <http://www.gnu.org/licenses/>. |
b90bb151 UH |
18 | ## |
19 | ||
8bf853f8 | 20 | VERSION = "0.1.0" |
b90bb151 | 21 | |
7cfd7aa9 GS |
22 | # TODO Ideally instructions would use autotools, cmake, or some other |
23 | # higher level abstraction instead of DIY shell commands. Which would | |
24 | # improve portability and robustness (by picking the most appropriate | |
25 | # install tool that is available on the target), and would transparently | |
26 | # enable support for --prefix and DESTDIR et al, including out of source | |
27 | # builds when desired. | |
28 | PREFIX ?= /usr/local | |
29 | INSTALL_DIR = $(PREFIX)/share/sigrok-dumps | |
4fafe815 | 30 | |
c3e314a9 GS |
31 | # Be explicit about which files or subdirectories to install. |
32 | # Update this list when adding a new top level subdirectory to the | |
33 | # set of example captures. It's assumed that this event is rare. | |
34 | # The list is phrased such that users can specify additional items | |
35 | # when they invoke the 'make install' command. | |
36 | FILES_DIRS += ac97 am230x arm_trace aud avr_isp avr_pdi | |
37 | FILES_DIRS += caliper can cec | |
38 | FILES_DIRS += dac dali dcc dcf77 display dmx512 dsi | |
39 | FILES_DIRS += flexray fsk | |
40 | FILES_DIRS += gpib graycode | |
41 | FILES_DIRS += i2c i2s ir | |
42 | FILES_DIRS += jtag | |
43 | FILES_DIRS += led lens_mounts lpc | |
44 | FILES_DIRS += maple_bus mcs48 mdio microwire miller misc morse mouse_sensors | |
45 | FILES_DIRS += nfc nonstandard_eeproms | |
46 | FILES_DIRS += onewire ook | |
47 | FILES_DIRS += pjon ps2 pwm | |
48 | FILES_DIRS += qi | |
49 | FILES_DIRS += rc rfid | |
50 | FILES_DIRS += sae-j1850 sdcard sdq sht7x signature sle44xx spdif spi | |
51 | FILES_DIRS += stepper_motor swd swim | |
52 | FILES_DIRS += tdm_audio | |
53 | FILES_DIRS += uart usb usb_power_delivery | |
54 | FILES_DIRS += vfd | |
55 | FILES_DIRS += wiegand | |
56 | FILES_DIRS += xy2-100 | |
57 | FILES_DIRS += z80 | |
58 | ||
ad011ff3 UH |
59 | all: |
60 | @echo "Run 'make dist' to create a tarball." | |
b90bb151 | 61 | |
797bc2e4 UH |
62 | ChangeLog: |
63 | git log > ChangeLog || touch ChangeLog | |
64 | ||
65 | dist: ChangeLog | |
b90bb151 | 66 | @tar -c -v -z --exclude=.git --exclude=Makefile \ |
8bf853f8 UH |
67 | --exclude=sigrok-dumps-$(VERSION).tar.gz \ |
68 | -f sigrok-dumps-$(VERSION).tar.gz * | |
797bc2e4 | 69 | @rm -f ChangeLog |
b90bb151 | 70 | |
4fafe815 | 71 | install: |
7cfd7aa9 GS |
72 | @mkdir -p $(DESTDIR)$(INSTALL_DIR) |
73 | @cp -r $(FILES_DIRS) $(DESTDIR)$(INSTALL_DIR) |