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 hpux suse openbsd \
15 slackware alpha netbsd caldera debian
23 @for subdir in ${SUBDIRS}; do \
24 if [ -f $${subdir}/Makefile ]; then \
25 (cd $${subdir}; make;) \
30 install: install-autostart-dir install-autostart-fd install-autostart-sd
32 install-autostart-dir:
33 @if test x$(DISTNAME) != x ; then \
35 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
39 @if test x$(DISTNAME) != x ; then \
41 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
45 @if test x$(DISTNAME) != x ; then \
47 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
50 uninstall: uninstall-autostart-dir uninstall-autostart-fd uninstall-autrun-sd
52 uninstall-autostart-dir:
53 @if test x$(DISTNAME) != x ; then \
55 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
58 uninstall-autostart-fd:
59 @if test x$(DISTNAME) != x ; then \
61 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
64 uninstall-autostart-sd:
65 @if test x$(DISTNAME) != x ; then \
67 $(MAKE) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
73 @for subdir in ${SUBDIRS}; do \
74 if [ -f $${subdir}/Makefile ]; then \
75 (cd $${subdir}; make clean;) \
82 @for subdir in ${SUBDIRS}; do \
83 if [ -f $${subdir}/Makefile ]; then \
84 (cd $${subdir}; make distclean;) \