]>
Commit | Line | Data |
---|---|---|
dc068290 SG |
1 | EXTRA_DIST = \ |
2 | lxc-devsetup \ | |
65b27d84 MP |
3 | lxc.service.in \ |
4 | lxc-net.service.in \ | |
5 | $(NULL) | |
dc068290 SG |
6 | |
7 | if INIT_SCRIPT_SYSTEMD | |
015f0dd7 MW |
8 | lxc-autostart-helper: ../sysvinit/lxc.in $(top_builddir)/config.status |
9 | $(AM_V_GEN)sed \ | |
10 | -e 's|[@]SYSCONFDIR[@]|$(sysconfdir)|g' \ | |
11 | -e 's|[@]LOCALSTATEDIR[@]|$(localstatedir)|g' \ | |
12 | -e 's|[@]BINDIR[@]|$(bindir)|g' \ | |
13 | < $< > $@-t && \ | |
14 | chmod a+x $@-t && \ | |
15 | mv $@-t $@ | |
65b27d84 | 16 | BUILT_SOURCES = lxc-autostart-helper lxc.service lxc-net.service |
015f0dd7 | 17 | |
65b27d84 | 18 | install-systemd: lxc.service lxc-net.service lxc-devsetup lxc-autostart-helper |
dc068290 | 19 | $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR) |
65b27d84 | 20 | $(INSTALL_DATA) lxc.service lxc-net.service $(DESTDIR)$(SYSTEMD_UNIT_DIR)/ |
dc068290 SG |
21 | |
22 | uninstall-systemd: | |
23 | rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc.service | |
65b27d84 | 24 | rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc-net.service |
dc068290 | 25 | rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) || : |
87c7e080 | 26 | |
015f0dd7 | 27 | pkglibexec_SCRIPTS = lxc-devsetup lxc-autostart-helper |
dc068290 SG |
28 | |
29 | install-data-local: install-systemd | |
dc068290 | 30 | uninstall-local: uninstall-systemd |
87c7e080 | 31 | endif |