]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/redhat/Makefile.in
Backport copyright changes
[bacula/bacula] / bacula / platforms / redhat / Makefile.in
1 #
2 # Copyright (C) Kern Sibbald 2001-2015
3 # License: BSD 2-Clause
4
5 # This file is used as the template to create the
6 # Makefile for the RedHat specific installation.
7 #
8 #  15 November 2001 -- Kern Sibbald
9 #
10 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
11 #
12
13 INSTALL = @INSTALL@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 754
15
16 nothing:
17
18 install: install-autostart
19
20 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
21
22 install_logrotate:
23         @$(INSTALL_PROGRAM) ../../scripts/logrotate $(DESTDIR)/etc/logrotate.d/bacula
24         
25 install-autostart-fd:
26         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
27            /sbin/chkconfig --del bacula-fd; \
28         fi
29         @$(INSTALL_PROGRAM) bacula-fd $(DESTDIR)/etc/rc.d/init.d/bacula-fd
30         # set symlinks for script at startup and shutdown
31         @if test x$(DESTDIR) = x ; then \
32            /sbin/chkconfig --add bacula-fd; \
33         fi
34
35
36 install-autostart-sd:
37         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
38             /sbin/chkconfig --del bacula-sd; \
39         fi
40         @$(INSTALL_PROGRAM) bacula-sd  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
41         # set symlinks for script at startup and shutdown
42         @if test x$(DESTDIR) = x ; then \
43            /sbin/chkconfig --add bacula-sd; \
44         fi
45
46
47 install-autostart-dir:
48         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-dir; then \
49             /sbin/chkconfig --del bacula-dir; \
50         fi
51         @$(INSTALL_PROGRAM) bacula-dir  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
52         # set symlinks for script at startup and shutdown
53         @if test x$(DESTDIR) = x ; then \
54            /sbin/chkconfig --add bacula-dir; \
55         fi
56
57
58 uninstall: uninstall-autostart
59
60 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
61
62 uninstall-logrotate:
63         @rm -f $(DESTDIR)/etc/logrotate.d/bacula
64
65 uninstall-autostart-fd:
66         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
67             /sbin/chkconfig --del bacula-fd; \
68         fi
69         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd
70
71
72 uninstall-autostart-sd:
73         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
74             /sbin/chkconfig --del bacula-sd; \
75         fi
76         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
77
78 uninstall-autostart-dir:
79         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-dir; then \
80             /sbin/chkconfig --del bacula-dir; \
81         fi
82         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
83
84 clean:
85         @rm -f 1 2 3
86
87 distclean: clean
88         @rm -f Makefile 
89         @rm -f bacula-sd bacula-fd bacula-dir
90
91 devclean: clean
92         @rm -f Makefile 
93         @rm -f bacula-sd bacula-fd bacula-dir