]> git.proxmox.com Git - mirror_lxc.git/blame - config/init/systemd/Makefile.am
Add systemd unit for lxc.net
[mirror_lxc.git] / config / init / systemd / Makefile.am
CommitLineData
dc068290
SG
1EXTRA_DIST = \
2 lxc-devsetup \
65b27d84
MP
3 lxc.service.in \
4 lxc-net.service.in \
5 $(NULL)
dc068290
SG
6
7if INIT_SCRIPT_SYSTEMD
015f0dd7
MW
8lxc-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 16BUILT_SOURCES = lxc-autostart-helper lxc.service lxc-net.service
015f0dd7 17
65b27d84 18install-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
22uninstall-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 27pkglibexec_SCRIPTS = lxc-devsetup lxc-autostart-helper
dc068290
SG
28
29install-data-local: install-systemd
dc068290 30uninstall-local: uninstall-systemd
87c7e080 31endif