2 # This file is used as the template to create the
3 # Makefile for the RedHat specific installation.
5 # 15 November 2001 -- Kern Sibbald
7 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 install: install-autostart
17 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
21 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-fd; then \
22 /sbin/chkconfig --del bacula-fd; \
24 @$(INSTALL_PROGRAM) -m 744 bacula-fd $(DESTDIR)/etc/rc.d/init.d/bacula-fd
25 # set symlinks for script at startup and shutdown
26 @if test x$(DESTDIR) = x ; then \
27 /sbin/chkconfig --add bacula-fd; \
32 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-sd; then \
33 /sbin/chkconfig --del bacula-sd; \
35 @$(INSTALL_PROGRAM) -m 744 bacula-sd $(DESTDIR)/etc/rc.d/init.d/bacula-sd
36 # set symlinks for script at startup and shutdown
37 @if test x$(DESTDIR) = x ; then \
38 /sbin/chkconfig --add bacula-sd; \
42 install-autostart-dir:
43 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-dir; then \
44 /sbin/chkconfig --del bacula-dir; \
46 @$(INSTALL_PROGRAM) -m 744 bacula-dir $(DESTDIR)/etc/rc.d/init.d/bacula-dir
47 # set symlinks for script at startup and shutdown
48 @if test x$(DESTDIR) = x ; then \
49 /sbin/chkconfig --add bacula-dir; \
53 uninstall: uninstall-autostart
55 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
57 uninstall-autostart-fd:
58 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-fd; then \
59 /sbin/chkconfig --del bacula-fd; \
61 @rm -f $(DESTDIR)/etc/rc.d/init.d/bacula-fd
64 uninstall-autostart-sd:
65 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-sd; then \
66 /sbin/chkconfig --del bacula-sd; \
68 @rm -f $(DESTDIR)/etc/rc.d/init.d/bacula-sd
70 uninstall-autostart-dir:
71 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-dir; then \
72 /sbin/chkconfig --del bacula-dir; \
74 @rm -f $(DESTDIR)/etc/rc.d/init.d/bacula-dir
80 @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
81 @rm -f bacula-sd bacula-fd bacula-dir