summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-11-27 16:47:04 +0100
committerBert Vermeulen <bert@biot.com>2013-11-27 16:47:04 +0100
commit03d6d746b742fb21ca22086ba6b72943a845ecc9 (patch)
tree3295f183a7cb65397b67da36c2825b4709a9194c /Makefile.am
parent37b94c205e4c1c43e77e29993108f23066cbce05 (diff)
downloadlibsigrokdecode-03d6d746b742fb21ca22086ba6b72943a845ecc9.tar.gz
libsigrokdecode-03d6d746b742fb21ca22086ba6b72943a845ecc9.zip
Automate protocol decoder installation.
This automatically figures out the files to install for each protocol decoder, without involving autotools. All python files (filenames ending in .py) are always installed. If a protocol decoder requires installation of a non-python file, a small file called 'config' can be created in that protocol decoder's directory, with the following content: # comments are ok extra-install vendorlist.txt commands.txt
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 6a5d6cf..c265331 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,7 @@
ACLOCAL_AMFLAGS = -I autostuff
-SUBDIRS = contrib decoders tests
+SUBDIRS = contrib tests
lib_LTLIBRARIES = libsigrokdecode.la
@@ -59,3 +59,9 @@ ChangeLog:
dist-hook: ChangeLog
+install-decoders:
+ $(MKDIR_P) $(DECODERS_DIR)
+ tools/install-decoders -o $(DECODERS_DIR)
+
+install-data-hook: install-decoders
+