]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/Makefile.in
Misc -- see kes-1.30
[bacula/bacula] / bacula / platforms / Makefile.in
1 #
2 # This is the makefile template for the platform directory
3 # which contains general platform installation.
4 #
5 #  15 November 2001 -- Kern Sibbald
6
7 #   for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
8 #
9
10
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12 INSTALL = @INSTALL@
13
14 SUBDIRS = freebsd redhat solaris unknown openbsd irix gentoo darwin
15
16 MAKE = make
17
18 DISTNAME=@DISTNAME@
19 DISTVER=@DISTVER@
20
21 all:
22         @for subdir in ${SUBDIRS}; do \
23             if [ -f $${subdir}/Makefile ]; then \
24                (cd $${subdir}; make;) \
25             fi; \
26         done
27
28
29 install: install-autostart-dir install-autostart-fd install-autostart-sd
30
31 install-autostart-dir:
32         @if test x$(DISTNAME) != x ; then \
33            (cd $(DISTNAME); \
34               $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
35         fi
36
37 install-autostart-fd:
38         @if test x$(DISTNAME) != x ; then \
39            (cd $(DISTNAME); \
40               $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
41         fi
42
43 install-autostart-sd:
44         @if test x$(DISTNAME) != x ; then \
45            (cd $(DISTNAME); \
46               $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
47         fi
48
49 uninstall: uninstall-autostart-dir uninstall-autostart-fd uninstall-autrun-sd
50
51 uninstall-autostart-dir:
52         @if test x$(DISTNAME) != x ; then \
53            (cd $(DISTNAME); \
54              $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
55         fi
56
57 uninstall-autostart-fd:
58         @if test x$(DISTNAME) != x ; then \
59            (cd $(DISTNAME); \
60              $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
61         fi
62
63 uninstall-autostart-sd:
64         @if test x$(DISTNAME) != x ; then \
65            (cd $(DISTNAME); \
66              $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
67         fi
68
69 depend:
70
71 clean:
72         @for subdir in ${SUBDIRS}; do \
73             if [ -f $${subdir}/Makefile ]; then \
74                     (cd $${subdir}; make clean) \
75             fi; \
76         done
77         rm -f 1 2 3
78
79 distclean:
80         @rm -f Makefile
81         @rm -rf CVS
82         @for subdir in ${SUBDIRS}; do \
83             if [ -f $${subdir}/Makefile ]; then \
84                      (cd $${subdir}; make distclean) \
85             fi; \
86             (cd $${subdir}; rm -rf CVS) \
87         done