mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-13 10:58:23 +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
|
else
|
||||||
SYSTEMD_UNIT_DIR = /usr/lib/systemd/system
|
SYSTEMD_UNIT_DIR = /usr/lib/systemd/system
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install-systemd: lxc.service lxc-devsetup
|
install-systemd: lxc.service lxc-devsetup
|
||||||
$(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
|
$(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
|
||||||
$(INSTALL_DATA) lxc.service $(DESTDIR)$(SYSTEMD_UNIT_DIR)/
|
$(INSTALL_DATA) lxc.service $(DESTDIR)$(SYSTEMD_UNIT_DIR)/
|
||||||
@ -15,12 +16,9 @@ install-systemd: lxc.service lxc-devsetup
|
|||||||
uninstall-systemd:
|
uninstall-systemd:
|
||||||
rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc.service
|
rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc.service
|
||||||
rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) || :
|
rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) || :
|
||||||
|
|
||||||
pkglibexec_SCRIPTS = lxc-devsetup
|
pkglibexec_SCRIPTS = lxc-devsetup
|
||||||
else
|
|
||||||
install-systemd:
|
|
||||||
uninstall-systemd:
|
|
||||||
endif
|
|
||||||
|
|
||||||
install-data-local: install-systemd
|
install-data-local: install-systemd
|
||||||
|
|
||||||
uninstall-local: uninstall-systemd
|
uninstall-local: uninstall-systemd
|
||||||
|
endif
|
||||||
|
@ -8,11 +8,7 @@ install-sysvinit: lxc
|
|||||||
uninstall-sysvinit:
|
uninstall-sysvinit:
|
||||||
rm -f $(DESTDIR)$(sysconfdir)/rc.d/init.d/lxc
|
rm -f $(DESTDIR)$(sysconfdir)/rc.d/init.d/lxc
|
||||||
rmdir $(DESTDIR)$(sysconfdir)/rc.d/init.d || :
|
rmdir $(DESTDIR)$(sysconfdir)/rc.d/init.d || :
|
||||||
else
|
|
||||||
install-sysvinit:
|
|
||||||
uninstall-sysvinit:
|
|
||||||
endif
|
|
||||||
|
|
||||||
install-data-local: install-sysvinit
|
install-data-local: install-sysvinit
|
||||||
|
|
||||||
uninstall-local: uninstall-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-instance.conf
|
||||||
rm -f $(DESTDIR)$(sysconfdir)/init/lxc-net.conf
|
rm -f $(DESTDIR)$(sysconfdir)/init/lxc-net.conf
|
||||||
rmdir $(DESTDIR)$(sysconfdir)/init || :
|
rmdir $(DESTDIR)$(sysconfdir)/init || :
|
||||||
else
|
|
||||||
install-upstart:
|
|
||||||
uninstall-upstart:
|
|
||||||
endif
|
|
||||||
|
|
||||||
install-data-local: install-upstart
|
install-data-local: install-upstart
|
||||||
|
|
||||||
uninstall-local: uninstall-upstart
|
uninstall-local: uninstall-upstart
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user