mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-13 03:45:30 +00:00
init: Simplify Makefile somehow
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
8da250dad4
commit
87c7e080c8
@ -8,6 +8,7 @@ SYSTEMD_UNIT_DIR = /lib/systemd/system
|
||||
else
|
||||
SYSTEMD_UNIT_DIR = /usr/lib/systemd/system
|
||||
endif
|
||||
|
||||
install-systemd: lxc.service lxc-devsetup
|
||||
$(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
|
||||
$(INSTALL_DATA) lxc.service $(DESTDIR)$(SYSTEMD_UNIT_DIR)/
|
||||
@ -15,12 +16,9 @@ install-systemd: lxc.service lxc-devsetup
|
||||
uninstall-systemd:
|
||||
rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc.service
|
||||
rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) || :
|
||||
|
||||
pkglibexec_SCRIPTS = lxc-devsetup
|
||||
else
|
||||
install-systemd:
|
||||
uninstall-systemd:
|
||||
endif
|
||||
|
||||
install-data-local: install-systemd
|
||||
|
||||
uninstall-local: uninstall-systemd
|
||||
endif
|
||||
|
@ -8,11 +8,7 @@ install-sysvinit: lxc
|
||||
uninstall-sysvinit:
|
||||
rm -f $(DESTDIR)$(sysconfdir)/rc.d/init.d/lxc
|
||||
rmdir $(DESTDIR)$(sysconfdir)/rc.d/init.d || :
|
||||
else
|
||||
install-sysvinit:
|
||||
uninstall-sysvinit:
|
||||
endif
|
||||
|
||||
install-data-local: install-sysvinit
|
||||
|
||||
uninstall-local: uninstall-sysvinit
|
||||
endif
|
||||
|
@ -12,11 +12,7 @@ uninstall-upstart:
|
||||
rm -f $(DESTDIR)$(sysconfdir)/init/lxc-instance.conf
|
||||
rm -f $(DESTDIR)$(sysconfdir)/init/lxc-net.conf
|
||||
rmdir $(DESTDIR)$(sysconfdir)/init || :
|
||||
else
|
||||
install-upstart:
|
||||
uninstall-upstart:
|
||||
endif
|
||||
|
||||
install-data-local: install-upstart
|
||||
|
||||
uninstall-local: uninstall-upstart
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user