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 \
15 darwin aix bsdi mandrake slackware alpha
23 @for subdir in ${SUBDIRS}; do \
24 if [ -f $${subdir}/Makefile ]; then \
25 (cd $${subdir}; $(MAKE) DESTDIR=$(DESTDIR);) \
30 install: install-autostart
33 @if test x$(DISTNAME) != x ; then \
35 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
38 install-autostart-dir:
39 @if test x$(DISTNAME) != x ; then \
41 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
45 @if test x$(DISTNAME) != x ; then \
47 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
51 @if test x$(DISTNAME) != x ; then \
53 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
56 uninstall: uninstall-autostart
59 @if test x$(DISTNAME) != x ; then \
61 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
64 uninstall-autostart-dir:
65 @if test x$(DISTNAME) != x ; then \
67 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
70 uninstall-autostart-fd:
71 @if test x$(DISTNAME) != x ; then \
73 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
76 uninstall-autostart-sd:
77 @if test x$(DISTNAME) != x ; then \
79 $(MAKE) DESTDIR=$(DESTDIR) "DISTNAME=$(DISTNAME)" "DISTVER=$(DISTVER)" $@) \
85 @for subdir in ${SUBDIRS}; do \
86 if [ -f $${subdir}/Makefile ]; then \
87 (cd $${subdir}; $(MAKE) clean) \
95 @for subdir in ${SUBDIRS}; do \
96 if [ -f $${subdir}/Makefile ]; then \
97 (cd $${subdir}; $(MAKE) distclean) \
99 (cd $${subdir}; rm -rf CVS) \
104 @for subdir in ${SUBDIRS}; do \
105 if [ -f $${subdir}/Makefile ]; then \
106 (cd $${subdir}; $(MAKE) devclean) \