diff options
author | Richard Hughes <richard@hughsie.com> | 2008-12-03 16:14:42 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-12-03 16:14:42 +0000 |
commit | 4487efd08d20d72fa7a79254725862f074dca905 (patch) | |
tree | db093963990a132d7df48b04beb4ff31e41adcef /src | |
parent | 672e0ff605295824e45ad4933bcc6b41944c85a3 (diff) |
trivial: only create the log file directory if we can write to the prefix
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 4 |
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) |