summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-06-27 21:34:24 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-02 23:15:49 -0400
commita0f9c810faa022c264bf534ab9495e0e9f617962 (patch)
tree6871b465428bbc8e7f0766f5299b00e0b3df5d4a
parent460c589a92ae58c5cfb4d36dba073220ccdc565f (diff)
build-sys: work around automake issue with files with a leading '-'
We should probably work around it, until it is sorted out. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728
-rw-r--r--Makefile.am13
-rw-r--r--units/x-.slice (renamed from units/-.slice)0
2 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index ca4513bdb4..0dd384e38e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -380,7 +380,7 @@ dist_systemunit_DATA = \
units/swap.target \
units/slices.target \
units/system.slice \
- units/-.slice \
+ units/x-.slice \
units/systemd-initctl.socket \
units/systemd-shutdownd.socket \
units/syslog.socket \
@@ -499,6 +499,17 @@ EXTRA_DIST += \
units/rc-local.service.in \
units/halt-local.service.in
+# automake is broken and can't handle files with a dash in front
+# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
+units-install-hook:
+ mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
+
+units-uninstall-hook:
+ rm -f $(DESTDIR)/$(systemunitdir)/-.slice
+
+INSTALL_DATA_HOOKS += units-install-hook
+UNINSTALL_DATA_HOOKS += units-uninstall-hook
+
dist_doc_DATA = \
README \
NEWS \
diff --git a/units/-.slice b/units/x-.slice
index ac82c35874..ac82c35874 100644
--- a/units/-.slice
+++ b/units/x-.slice