2 # This file is used as the template to create the
3 # Makefile for the SuSe specific installation.
6 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
10 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 install: install-autostart
16 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
20 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-fd; then \
21 /sbin/chkconfig --del bacula-fd; \
23 @$(INSTALL_PROGRAM) -m 744 bacula-fd $(DESTDIR)/etc/rc.d/init.d/bacula-fd
24 # set symlinks for script at startup and shutdown
25 @if test x$(DESTDIR) = x ; then \
26 /sbin/chkconfig --add bacula-fd; \
31 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-sd; then \
32 /sbin/chkconfig --del bacula-sd; \
34 @$(INSTALL_PROGRAM) -m 744 bacula-sd $(DESTDIR)/etc/rc.d/init.d/bacula-sd
35 # set symlinks for script at startup and shutdown
36 @if test x$(DESTDIR) = x ; then \
37 /sbin/chkconfig --add bacula-sd; \
41 install-autostart-dir:
42 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-dir; then \
43 /sbin/chkconfig --del bacula-dir; \
45 @$(INSTALL_PROGRAM) -m 744 bacula-dir $(DESTDIR)/etc/rc.d/init.d/bacula-dir
46 # set symlinks for script at startup and shutdown
47 @if test x$(DESTDIR) = x ; then \
48 /sbin/chkconfig --add bacula-dir; \
52 uninstall: uninstall-autostart
54 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
56 uninstall-autostart-fd:
57 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-fd; then \
58 /sbin/chkconfig --del bacula-fd; \
60 @rm -f $(DESTDIR)/etc/rc.d/init.d/bacula-fd
63 uninstall-autostart-sd:
64 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-sd; then \
65 /sbin/chkconfig --del bacula-sd; \
67 @rm -f $(DESTDIR)/etc/rc.d/init.d/bacula-sd
69 uninstall-autostart-dir:
70 @if test x$(DESTDIR) = x -a -f /etc/rc.d/init.d/bacula-dir; then \
71 /sbin/chkconfig --del bacula-dir; \
73 @rm -f $(DESTDIR)/etc/rc.d/init.d/bacula-dir
79 @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
80 @rm -f bacula-sd bacula-fd bacula-dir
84 @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
85 @rm -f bacula-sd bacula-fd bacula-dir