1 # Copyright (C) 2000-2015 by Kern Sibbald
2 # License: BSD 2-Clause; see file LICENSE-FOSS
4 # This is the makefile template for the platform directory
5 # which contains general platform installation.
7 # 15 November 2001 -- Kern Sibbald
9 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
13 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 SUBDIRS = hurd freebsd redhat solaris unknown openbsd osx irix gentoo \
17 debian darwin aix bsdi mandrake slackware alpha ubuntu systemd
25 @for subdir in ${SUBDIRS}; do \
26 if [ -f $${subdir}/Makefile ]; then \
27 (cd $${subdir}; $(MAKE) DESTDIR=$(DESTDIR);) \
32 install: install-autostart
35 @if test x$(DISTNAME) != x ; then \
37 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
40 install-autostart-dir:
41 @if test x$(DISTNAME) != x ; then \
43 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
47 @if test x$(DISTNAME) != x ; then \
49 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
53 @if test x$(DISTNAME) != x ; then \
55 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
58 uninstall: uninstall-autostart
61 @if test x$(DISTNAME) != x ; then \
63 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
66 uninstall-autostart-dir:
67 @if test x$(DISTNAME) != x ; then \
69 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
72 uninstall-autostart-fd:
73 @if test x$(DISTNAME) != x ; then \
75 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
78 uninstall-autostart-sd:
79 @if test x$(DISTNAME) != x ; then \
81 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
87 @for subdir in ${SUBDIRS}; do \
88 if [ -f $${subdir}/Makefile ]; then \
89 (cd $${subdir}; $(MAKE) clean) \
96 @for subdir in ${SUBDIRS}; do \
97 if [ -f $${subdir}/Makefile ]; then \
98 (cd $${subdir}; $(MAKE) distclean) \
104 @for subdir in ${SUBDIRS}; do \
105 if [ -f $${subdir}/Makefile ]; then \
106 (cd $${subdir}; $(MAKE) devclean) \