Support DESTDIR on install targets.
[libsigrokdecode.git] / Makefile.am
index c265331169b2512880e0bc15db5a4a01500d48fd..9a0a8924baf1fec14048ff49bbd94365d6bacbd4 100644 (file)
@@ -60,8 +60,8 @@ ChangeLog:
 dist-hook: ChangeLog
 
 install-decoders:
-       $(MKDIR_P) $(DECODERS_DIR)
-       tools/install-decoders -o $(DECODERS_DIR)
+       $(MKDIR_P) $(DESTDIR)$(DECODERS_DIR)
+       tools/install-decoders -o $(DESTDIR)$(DECODERS_DIR)
 
 install-data-hook: install-decoders