]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/Makefile.in
8f5c4e8500f5e7a1caa9ca5b7d65578877f3d1b9
[bacula/bacula] / bacula / platforms / Makefile.in
1 # Copyright (C) 2000-2015 by Kern Sibbald
2 # License: BSD 2-Clause; see file LICENSE-FOSS
3 #
4 # This is the makefile template for the platform directory
5 # which contains general platform installation.
6 #
7 #  15 November 2001 -- Kern Sibbald
8
9 #   for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
10 #
11
12
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 INSTALL = @INSTALL@
15
16 SUBDIRS = hurd freebsd redhat solaris unknown openbsd osx irix gentoo \
17           debian darwin aix bsdi mandrake slackware alpha ubuntu systemd
18
19 MAKE = make
20
21 DISTNAME=@DISTNAME@
22 DISTVER=@DISTVER@
23
24 all:
25         @for subdir in ${SUBDIRS}; do \
26             if [ -f $${subdir}/Makefile ]; then \
27                (cd $${subdir}; $(MAKE) DESTDIR=$(DESTDIR);) \
28             fi; \
29         done
30
31
32 install: install-autostart
33
34 install-autostart:
35         @if test x$(DISTNAME) != x ; then \
36            (cd $(DISTNAME); \
37               $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
38         fi
39
40 install-autostart-dir:
41         @if test x$(DISTNAME) != x ; then \
42            (cd $(DISTNAME); \
43               $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
44         fi
45
46 install-autostart-fd:
47         @if test x$(DISTNAME) != x ; then \
48            (cd $(DISTNAME); \
49               $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
50         fi
51
52 install-autostart-sd:
53         @if test x$(DISTNAME) != x ; then \
54            (cd $(DISTNAME); \
55               $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
56         fi
57
58 uninstall: uninstall-autostart
59
60 uninstall-autostart:
61         @if test x$(DISTNAME) != x ; then \
62            (cd $(DISTNAME); \
63              $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
64         fi
65
66 uninstall-autostart-dir:
67         @if test x$(DISTNAME) != x ; then \
68            (cd $(DISTNAME); \
69              $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
70         fi
71
72 uninstall-autostart-fd:
73         @if test x$(DISTNAME) != x ; then \
74            (cd $(DISTNAME); \
75              $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
76         fi
77
78 uninstall-autostart-sd:
79         @if test x$(DISTNAME) != x ; then \
80            (cd $(DISTNAME); \
81              $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
82         fi
83
84 depend:
85
86 clean:
87         @for subdir in ${SUBDIRS}; do \
88             if [ -f $${subdir}/Makefile ]; then \
89                     (cd $${subdir}; $(MAKE) clean) \
90             fi; \
91         done
92         @rm -f 1 2 3
93
94 distclean:
95         @rm -f Makefile
96         @for subdir in ${SUBDIRS}; do \
97             if [ -f $${subdir}/Makefile ]; then \
98                      (cd $${subdir}; $(MAKE) distclean) \
99             fi; \
100         done
101
102 devclean:
103         @rm -f Makefile
104         @for subdir in ${SUBDIRS}; do \
105             if [ -f $${subdir}/Makefile ]; then \
106                      (cd $${subdir}; $(MAKE) devclean) \
107             fi; \
108         done