# $Id: Makefile.tail,v 1.35 2004/03/23 14:29:14 jmmv Exp $ .PHONY: .PHONY: all build clean cleandir deinstall install .SUFFIXES: .SUFFIXES: .c .o .in .sh .mdoc .html .more .ps .txt CLEANDIRFILES_CMN = Makefile CMNLINTFILES_CMN = Makefile.in CMNLINT = ${AWK} -f ${TOPDIR}/mklogic/cmnlint.awk SHLINT = ${AWK} -f ${TOPDIR}/mklogic/shlint.awk Makefile: Makefile.in @echo "Makefile is out of sync. Please run configure again." @false # ------------------------------------------------------------------------ # C compilation # ------------------------------------------------------------------------ .c.o: ${CC} ${CFLAGS} -c $< -o $@ # ------------------------------------------------------------------------ # Documentation # ------------------------------------------------------------------------ .mdoc.html: ${GROFF_HTML} $< > $@ .mdoc.more: ${GROFF_MORE} $< > $@ .mdoc.ps: ${GROFF_PS} $< > $@ .mdoc.txt: ${GROFF_TXT} $< > $@ # ------------------------------------------------------------------------ # Subdirectories manipulation # ------------------------------------------------------------------------ .PHONY: subdir-build subdir-clean subdir-cleandir subdir-lint subdir-build: @failed=no; \ for d in ${SUBDIR}; do \ echo "build ==> $$d"; \ cd $$d; \ ${MAKE} build || failed=yes; \ cd ..; \ if [ $${failed} = yes ]; then break; fi; \ done; \ [ $${failed} = no ] subdir-clean: @failed=no; \ for d in ${SUBDIR}; do \ echo "clean ==> $$d"; \ cd $$d; \ ${MAKE} clean || failed=yes; \ cd ..; \ if [ $${failed} = yes ]; then break; fi; \ done; \ [ $${failed} = no ] @echo "clean ==> top directory" subdir-cleandir: @failed=no; \ for d in ${SUBDIR}; do \ echo "cleandir ==> $$d"; \ cd $$d; \ ${MAKE} cleandir || failed=yes; \ cd ..; \ if [ $${failed} = yes ]; then break; fi; \ done; \ [ $${failed} = no ] @echo "cleandir ==> top directory" subdir-install: @failed=no; \ for d in ${SUBDIR}; do \ echo "install ==> $$d"; \ cd $$d; \ ${MAKE} install || failed=yes; \ cd ..; \ if [ $${failed} = yes ]; then break; fi; \ done; \ [ $${failed} = no ] @echo @echo "===========================================================================" @echo " Buildtool ${VERSION} has been successfully installed!" @echo @echo " Please take some time to read the \`Testing' section in the README file" @echo " to easily provide useful feedback. This will not take more than ten" @echo " minutes, but you will be contributing to the project." @echo @echo " As part of the post installation stage, you should now create a system" @echo " configuration file for the bt_config module, containing cached results" @echo " for several common checks run by many configure scripts." @echo " For an automated setup, issue the following commands:" @echo " mkdir -p ${DIR_CONF}" @echo " cp ${DIR_SHARE}/templates/bt_config.conf.in \\" @echo " ${DIR_CONF}/bt_config.conf.in" @echo " ${PREFIX}/bin/buildtool swcgen" @echo @echo " Thanks for choosing Buildtool." @echo "===========================================================================" @echo subdir-lint: @failed=no; \ for d in ${SUBDIR}; do \ echo "lint ==> $$d"; \ cd $$d; \ ${MAKE} lint || failed=yes; \ cd ..; \ if [ $${failed} = yes ]; then break; fi; \ done; \ [ $${failed} = no ] @echo "lint ==> top directory" build: clean: @if [ -n "${CLEANFILES}" ]; then \ echo "rm -f ${CLEANFILES}"; \ rm -f ${CLEANFILES}; \ fi cleandir: @if [ -n "${CLEANFILES}" ]; then \ echo "rm -f ${CLEANFILES}"; \ rm -f ${CLEANFILES}; \ fi rm -f ${CLEANDIRFILES_CMN} ${CLEANDIRFILES} install: lint: @failed=no; \ files="${CMNLINTFILES_CMN} ${CMNLINTFILES}"; \ for f in $${files:-unset}; do \ ${CMNLINT} $$f || failed=yes; \ done; \ if [ -n "${SHLINTFILES}" ]; then \ files="${SHLINTFILES}"; \ for f in $${files:-unset}; do \ ${CMNLINT} $$f || failed=yes; \ ${SHLINT} $$f || failed=yes; \ done; \ fi; \ [ $${failed} = no ]