]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/redhat/Makefile.in
Rework spec files, add DESTDIR, fix spelling of autochanger
[bacula/bacula] / bacula / platforms / redhat / Makefile.in
1
2 # This file is used as the template to create the
3 # Makefile for the RedHat specific installation.
4 #
5 #  15 November 2001 -- Kern Sibbald
6 #
7 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
8 #
9
10 INSTALL = @INSTALL@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12
13 nothing:
14
15 install: install-autostart
16
17 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
18
19         
20 install-autostart-fd:
21         @if test -f $(DESTDIR)/etc/rc.d/init.d/bacula-fd; then \
22             /sbin/chkconfig --del bacula-fd; \
23         fi
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         @/sbin/chkconfig --add bacula-fd
27
28
29 install-autostart-sd:
30         @if test -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd; then \
31             /sbin/chkconfig --del bacula-sd; \
32         fi
33         @$(INSTALL_PROGRAM) -m 744 bacula-sd  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
34         # set symlinks for script at startup and shutdown
35         @/sbin/chkconfig --add bacula-sd
36
37
38 install-autostart-dir:
39         @if test -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir; then \
40             /sbin/chkconfig --del bacula-dir; \
41         fi
42         @$(INSTALL_PROGRAM) -m 744 bacula-dir  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
43         # set symlinks for script at startup and shutdown
44         @/sbin/chkconfig --add bacula-dir
45
46
47 uninstall: uninstall-autostart
48
49 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
50
51 uninstall-autostart-fd:
52         @if test -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd; then \
53             /sbin/chkconfig --del bacula-fd; \
54         fi
55         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd
56
57
58 uninstall-autostart-sd:
59         @if test -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd; then \
60             /sbin/chkconfig --del bacula-sd; \
61         fi
62         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
63
64 uninstall-autostart-dir:
65         @if test -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir; then \
66             /sbin/chkconfig --del bacula-dir; \
67         fi
68         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
69
70 clean:
71
72 distclean: clean
73         @rm -f Makefile bacula-*.spec bacula.*.spec
74         @rm -f bacula-sd bacula-fd bacula-dir
75         @rm -rf CVS