]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/mandrake/Makefile.in
e782a9e59c668fae8720555db56a3fa932d35013
[bacula/bacula] / bacula / platforms / mandrake / Makefile.in
1
2 # This file is used as the template to create the
3 # Makefile for the Mandrake 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 x$(DESTDIR) = x -a  -f /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         @if test x$(DESTDIR) = x ; then \
27            /sbin/chkconfig --add bacula-fd; \
28         fi
29
30
31 install-autostart-sd:
32         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
33             /sbin/chkconfig --del bacula-sd; \
34         fi
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; \
39         fi
40
41
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; \
45         fi
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; \
50         fi
51
52
53 uninstall: uninstall-autostart
54
55 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
56
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; \
60         fi
61         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd
62
63
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; \
67         fi
68         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
69
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; \
73         fi
74         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
75
76 clean:
77         @rm -f 1 2 3
78
79 distclean: clean
80         @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
81         @rm -f bacula-sd bacula-fd bacula-dir
82         @rm -rf CVS