summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-12-03 16:14:42 +0000
committerRichard Hughes <richard@hughsie.com>2008-12-03 16:14:42 +0000
commit4487efd08d20d72fa7a79254725862f074dca905 (patch)
treedb093963990a132d7df48b04beb4ff31e41adcef
parent672e0ff605295824e45ad4933bcc6b41944c85a3 (diff)
trivial: only create the log file directory if we can write to the prefix
-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)