summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 274e438..337691f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -106,7 +106,9 @@ udevrules_DATA = \
95-devkit-power-csr.rules
install-data-hook:
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/DeviceKit-power
+ if test -w $(DESTDIR)$(prefix)/; then \
+ mkdir -p $(DESTDIR)$(localstatedir)/lib/DeviceKit-power; \
+ fi
CLEANFILES = $(BUILT_SOURCES)