From: Dwight Engen Date: Mon, 3 Mar 2014 17:59:42 +0000 (-0500) Subject: fix systemd unit file location to use prefix for local installs X-Git-Tag: lxc-1.1.0.alpha1~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d520afa9135281fb7f7905db29215dc1ea6a973;p=thirdparty%2Flxc.git fix systemd unit file location to use prefix for local installs also remove /usr special case for non-debian distros since systemd itself sets systemunitdir=$(rootprefix)/lib/systemd/system Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/config/init/systemd/Makefile.am b/config/init/systemd/Makefile.am index 6e2bb13b1..de5ee5008 100644 --- a/config/init/systemd/Makefile.am +++ b/config/init/systemd/Makefile.am @@ -3,11 +3,7 @@ EXTRA_DIST = \ lxc.service if INIT_SCRIPT_SYSTEMD -if HAVE_DEBIAN -SYSTEMD_UNIT_DIR = /lib/systemd/system -else -SYSTEMD_UNIT_DIR = /usr/lib/systemd/system -endif +SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system install-systemd: lxc.service lxc-devsetup $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)