From 03d6d746b742fb21ca22086ba6b72943a845ecc9 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Wed, 27 Nov 2013 16:47:04 +0100 Subject: 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 --- Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile.am') 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 + -- cgit v1.2.3-70-g09d2