2 # This is the makefile template for the platform directory
3 # which contains general platform installation.
5 # 15 November 2001 -- Kern Sibbald
7 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
14 SUBDIRS = freebsd redhat solaris unknown openbsd irix gentoo
22 @for subdir in ${SUBDIRS}; do \
23 if [ -f $${subdir}/Makefile ]; then \
24 (cd $${subdir}; make;) \
29 install: install-autostart-dir install-autostart-fd install-autostart-sd
31 install-autostart-dir:
32 @if test x$(DISTNAME) != x ; then \
34 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
38 @if test x$(DISTNAME) != x ; then \
40 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
44 @if test x$(DISTNAME) != x ; then \
46 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
49 uninstall: uninstall-autostart-dir uninstall-autostart-fd uninstall-autrun-sd
51 uninstall-autostart-dir:
52 @if test x$(DISTNAME) != x ; then \
54 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
57 uninstall-autostart-fd:
58 @if test x$(DISTNAME) != x ; then \
60 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
63 uninstall-autostart-sd:
64 @if test x$(DISTNAME) != x ; then \
66 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
72 @for subdir in ${SUBDIRS}; do \
73 if [ -f $${subdir}/Makefile ]; then \
74 (cd $${subdir}; make clean) \
82 @for subdir in ${SUBDIRS}; do \
83 if [ -f $${subdir}/Makefile ]; then \
84 (cd $${subdir}; make distclean) \
86 (cd $${subdir}; rm -rf CVS) \