summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-06-23 13:53:17 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-06-23 13:53:17 +0000
commit69bf12b84054dcbde84fb07eaa9bb9e5d60f1355 (patch)
tree3cf758cdc37ee7792a9076f28e6d5ef727e52642 /src
parent93c241c65dfcd0ffba7852740fb34a4c3249b52b (diff)
Fix installation of sensors when DESTDIR is used
Also include sensors in distribution tarball. This fixes issue #3859.
Diffstat (limited to 'src')
-rw-r--r--src/sensor/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sensor/Makefile.am b/src/sensor/Makefile.am
index fc622cef7..b62885d0c 100644
--- a/src/sensor/Makefile.am
+++ b/src/sensor/Makefile.am
@@ -129,11 +129,12 @@ perf_pow_sign_LDADD = \
$(top_builddir)/src/testbed/libgnunettestbed.la \
libgnunetsensorutil.la
+EXTRA_DIST = sensors
pkgsensordir = sensors
install-data-local:
- $(mkinstalldirs) $(datadir)/$(PACKAGE)/$(pkgsensordir)
+ $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE)/$(pkgsensordir)
@$(NORMAL_INSTALL)
for sensor in $(pkgsensordir)/*; do \
- cp -a $$sensor $(datadir)/$(PACKAGE)/$(pkgsensordir)/ ; \
+ cp -a $$sensor $(DESTDIR)$(datadir)/$(PACKAGE)/$(pkgsensordir)/ ; \
done