2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
5 # This file is used as the template to create the
6 # Makefile for the Gentoo specific installation.
8 # 22 January 2003 -- Kern Sibbald
9 # and corrected for Gentoo by
10 # Patrick Naubert 25 Jan 2003
12 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
16 INSTALL_PROGRAM = @INSTALL_PROGRAM@
20 install: install-autostart
22 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
26 @$(INSTALL) -m 744 bacula-fd $(DESTDIR)/etc/init.d/bacula-fd
30 @$(INSTALL) -m 744 bacula-sd $(DESTDIR)/etc/init.d/bacula-sd
33 install-autostart-dir:
34 @$(INSTALL) -m 744 bacula-dir $(DESTDIR)/etc/init.d/bacula-dir
37 uninstall: uninstall-autostart
39 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
41 uninstall-autostart-fd:
42 @rm -f $(DESTDIR)/etc/init.d/bacula-fd
45 uninstall-autostart-sd:
46 @rm -f $(DESTDIR)/etc/init.d/bacula-sd
48 uninstall-autostart-dir:
49 @rm -f $(DESTDIR)/etc/init.d/bacula-dir
55 @rm -f bacula-sd bacula-fd bacula-dir
59 @rm -f bacula-sd bacula-fd bacula-dir