]>
Commit | Line | Data |
---|---|---|
0af99319 | 1 | EXTRA_DIST = lxc-containers.in lxc-net.in |
dc068290 SG |
2 | |
3 | if INIT_SCRIPT_SYSV | |
0af99319 MW |
4 | # If we're installing for sysv init, install the helper scripts |
5 | # directly to the rc directory under the appropriate name. | |
6 | ||
7 | if HAVE_DEBIAN | |
8 | initdir = "init.d" | |
9 | else | |
10 | initdir = "rc.d/init.d" | |
11 | endif | |
12 | ||
13 | install-sysvinit: lxc-containers lxc-net | |
14 | $(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(initdir) | |
15 | $(INSTALL_SCRIPT) lxc-containers $(DESTDIR)$(sysconfdir)/$(initdir)/lxc | |
16 | $(INSTALL_SCRIPT) lxc-net $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net | |
dc068290 SG |
17 | |
18 | uninstall-sysvinit: | |
0af99319 MW |
19 | rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc |
20 | rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net | |
21 | rmdir $(DESTDIR)$(sysconfdir)/$(initdir) || : | |
dc068290 SG |
22 | |
23 | install-data-local: install-sysvinit | |
dc068290 | 24 | uninstall-local: uninstall-sysvinit |
87c7e080 | 25 | endif |