summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-17 00:53:54 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-17 00:53:57 +0100
commitf19bd45476536439b0f9fe01808f5d118238c5b1 (patch)
treeaa93a3ee42dde241b3217a7e4c4b31d232329bb4
parenta3db5f00cfb924d3d93da5eca0914d23d7102fcd (diff)
build-sys: make sure make install can be run twice in a row0.4.4
https://bugs.freedesktop.org/show_bug.cgi?id=32130
-rw-r--r--data/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index c45f15b..248f7cd 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -47,14 +47,19 @@ install-data-hook:
$(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants \
$(DESTDIR)$(systemdsystemunitdir)/kexec.target.wants
( cd $(DESTDIR)$(systemdsystemunitdir)/basic.target.wants && \
+ rm -f console-kit-log-system-start.service && \
$(LN_S) ../console-kit-log-system-start.service )
( cd $(DESTDIR)$(systemdsystemunitdir)/halt.target.wants && \
+ rm -f console-kit-log-system-stop.service && \
$(LN_S) ../console-kit-log-system-stop.service )
( cd $(DESTDIR)$(systemdsystemunitdir)/poweroff.target.wants && \
+ rm -f console-kit-log-system-stop.service && \
$(LN_S) ../console-kit-log-system-stop.service )
( cd $(DESTDIR)$(systemdsystemunitdir)/reboot.target.wants && \
+ rm -f console-kit-log-system-restart.service && \
$(LN_S) ../console-kit-log-system-restart.service )
( cd $(DESTDIR)$(systemdsystemunitdir)/kexec.target.wants && \
+ rm -f console-kit-log-system-restart.service && \
$(LN_S) ../console-kit-log-system-restart.service )
endif