]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/suse/Makefile.in
This commit was manufactured by cvs2svn to create tag
[bacula/bacula] / bacula / platforms / suse / Makefile.in
1
2 # This file is used as the template to create the
3 # Makefile for the SuSe specific installation.
4 #
5 #
6 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
7 #
8
9 INSTALL = @INSTALL@
10 INSTALL_PROGRAM = @INSTALL_PROGRAM@
11
12 nothing:
13
14 install: install-autostart
15
16 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
17
18         
19 install-autostart-fd:
20         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
21            /sbin/chkconfig --del bacula-fd; \
22         fi
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; \
27         fi
28
29
30 install-autostart-sd:
31         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
32             /sbin/chkconfig --del bacula-sd; \
33         fi
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; \
38         fi
39
40
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; \
44         fi
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; \
49         fi
50
51
52 uninstall: uninstall-autostart
53
54 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
55
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; \
59         fi
60         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd
61
62
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; \
66         fi
67         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
68
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; \
72         fi
73         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
74
75 clean:
76         @rm -f 1 2 3
77
78 distclean: clean
79         @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
80         @rm -f bacula-sd bacula-fd bacula-dir
81         @rm -rf CVS