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