Makefile.am revision 0af993195cbd57cff700c7c90ee8f95c2a1ef8aa
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim ReddehaseEXTRA_DIST = lxc-containers.in lxc-net.in
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehase
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehaseif INIT_SCRIPT_SYSV
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehase# If we're installing for sysv init, install the helper scripts
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehase# directly to the rc directory under the appropriate name.
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehase
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehaseif HAVE_DEBIAN
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehaseinitdir = "init.d"
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehaseelse
39f4456a75fd3e8b00e5eaa1158086c5cbf0774cTim Reddehaseinitdir = "rc.d/init.d"
endif
install-sysvinit: lxc-containers lxc-net
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(initdir)
$(INSTALL_SCRIPT) lxc-containers $(DESTDIR)$(sysconfdir)/$(initdir)/lxc
$(INSTALL_SCRIPT) lxc-net $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net
uninstall-sysvinit:
rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc
rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net
rmdir $(DESTDIR)$(sysconfdir)/$(initdir) || :
install-data-local: install-sysvinit
uninstall-local: uninstall-sysvinit
endif