]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/solaris/Makefile.in
Ensure the directories for solaris init scripts are created
[bacula/bacula] / bacula / platforms / solaris / Makefile.in
1
2 # This file is used as the template to create the
3 # Makefile for the Solaris specific installation.
4 #
5 #  15 November 2001 -- Kern Sibbald
6 #
7 #  03 November 2003 corrections to the paths made by
8 #      Kenneth ragnor at virtualsd dot net
9 #
10 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
11 #
12
13 INSTALL = @INSTALL@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_DIR = $(INSTALL) -d -m 755
16
17 nothing:
18
19 install: install-autostart
20
21 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
22
23 install-autostart-%:
24         @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
25         @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
26         @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
27         @$(INSTALL_DIR) $(DESTDIR)/etc/init.d
28         @$(INSTALL_DIR) $(DESTDIR)/etc/rc0.d $(DESTDIR)/etc/rc1.d \
29                 $(DESTDIR)/etc/rc2.d
30         @$(INSTALL_PROGRAM) -m 744 bacula-$* $(DESTDIR)/etc/init.d/bacula-$*
31         # set symlinks for script at startup and shutdown
32         @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$*
33         @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc1.d/S99bacula-$*
34         @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc2.d/S99bacula-$*
35
36 uninstall: uninstall-autostart
37
38 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
39
40 uninstall-autostart-%:
41         @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
42         @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
43         @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
44         @rm -f $(DESTDIR)/etc/init.d/bacula-$*
45
46 clean:
47         @rm -f 1 2 3
48
49 distclean: clean
50         @rm -f bacula-sd bacula-fd bacula-dir
51         @rm -f Makefile bacula-*.spec
52
53 devclean: clean
54         @rm -f bacula-sd bacula-fd bacula-dir
55         @rm -f Makefile bacula-*.spec