]> sigrok.org Git - libsigrokdecode.git/commitdiff
Fix out-of-tree build.
authorUwe Hermann <redacted>
Mon, 27 Jan 2014 14:09:08 +0000 (15:09 +0100)
committerUwe Hermann <redacted>
Tue, 28 Jan 2014 21:46:05 +0000 (22:46 +0100)
This fixes 'make install' and 'make dist' for out-of-tree builds.

Makefile.am

index 5227cc3ecb17f86db9b5881368317ebc7c9046c1..b7136a01fb13bfb1f664e2df747a67acfb23dfdc 100644 (file)
@@ -59,13 +59,15 @@ ChangeLog:
 
 dist-hook: ChangeLog
        $(MKDIR_P) $(distdir)/tools
-       cp tools/install-decoders $(distdir)/tools
+       cp ${top_srcdir}/tools/install-decoders $(distdir)/tools
        $(MKDIR_P) $(distdir)/decoders
-       tools/install-decoders -o $(distdir)/decoders
+       ${top_srcdir}/tools/install-decoders -i ${top_srcdir}/decoders \
+               -o $(distdir)/decoders
 
 install-decoders:
        $(MKDIR_P) $(DESTDIR)$(DECODERS_DIR)
-       tools/install-decoders -o $(DESTDIR)$(DECODERS_DIR)
+       ${top_srcdir}/tools/install-decoders -i ${top_srcdir}/decoders \
+               -o $(DESTDIR)$(DECODERS_DIR)
 
 install-data-hook: install-decoders