# # Makefile generated by buildtool-0.16 configure script # Changes made here will be lost! # # Main target all: Makefile build # Detected variables PACKAGE = buildtool VERSION = 0.16 VERSION_MAJOR = 0 VERSION_MINOR = 16 TOPDIR = /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16 WORKDIR = CC = cc STRIP = /usr/bin/strip SH = /bin/ksh AWK = /usr/local/bin/gawk GROFF = /usr/bin/groff GENFILE = /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16/mklogic/genfile.sh GENFILE_SH_COMMON = /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16/sh_head.in /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16/sh_tail.in CFLAGS = -I. -I.. -fno-common LDFLAGS = DOC = #WRAPPER = PREFIX = /usr/local DIR_CONF = /usr/local/etc/buildtool DIR_DOC = /usr/local/share/doc/buildtool DIR_EXEC = /usr/local/bin DIR_MAN = /usr/local/man DIR_MODS = /usr/local/libexec/buildtool DIR_PKGCONFIG = /usr/local/lib/pkgconfig DIR_PKGFLAGS = /usr/local/share/buildtool/pkgflags DIR_SHARE = /usr/local/share/buildtool INSTALL_ENV = GRP= OWN= BIN_MODE= DATA_MODE= DIR_MODE= INSTALL_DIR = ${INSTALL_ENV} TYPE=dir /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16/mklogic/install.sh INSTALL_BIN = ${INSTALL_ENV} TYPE=bin /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16/mklogic/install.sh INSTALL_DATA = ${INSTALL_ENV} TYPE=data /mnt/gmirror/ports/devel/buildtool/work/buildtool-0.16/mklogic/install.sh GROFF_HTML = /usr/bin/groff -Tlatin1 -mdoc2html -P-b -P-o -P-u GROFF_MORE = /usr/bin/groff -Tascii -mdoc -mtty-char GROFF_PS = /usr/bin/groff -Tps -mdoc GROFF_TXT = /usr/bin/groff -Tascii -mdoc -P-b -P-o -P-u SUBDIR = bt_config bt_dist bt_doc bt_lint bt_logic bt_pkgflags bt_sh bt_swcgen bt_wizard buildtool doc mklogic templates REGEN_ARITH = # $Id: Makefile.in,v 1.29 2004/05/08 12:20:24 jmmv Exp $ CLEANFILES = ${GENSRCS} ${OBJS} bt_sh mkinit mknodes mksyntax trace \ lex.yy.c y.tab.c y.tab.h SHSRCS = alias.c cd.c error.c eval.c exec.c expand.c \ input.c jobs.c main.c memalloc.c \ miscbltin.c mystring.c options.c parser.c redir.c \ show.c trap.c output.c var.c \ bltin/echo.c bltin/oodate.c \ bltin/quotemeta.c bltin/swcase.c bltin/test.c GENSRCS = builtins.c builtins.h \ init.c nodes.c nodes.h syntax.c syntax.h token.h ARITHSRCS = arith.h arith.c arith_lex.c OBJS = alias.o cd.o error.o eval.o exec.o expand.o \ input.o jobs.o main.o memalloc.o \ miscbltin.o mystring.o options.o parser.o redir.o \ show.o trap.o output.o var.o \ bltin/echo.o bltin/oodate.o \ bltin/quotemeta.o bltin/swcase.o bltin/test.o \ arith.o arith_lex.o builtins.o \ init.o nodes.o syntax.o \ compat/getopt.o \ compat/setmode.o compat/siglist.o compat/signame.o build: bt_sh bt_sh: ${GENSRCS} ${ARITHSRCS} ${OBJS} ${CC} ${OBJS} -o bt_sh ${LDFLAGS} ${STRIP} bt_sh arith.h: arith.y if [ -n "${REGEN_ARITH}" ]; then \ ${YACC} -d arith.y; \ if [ -f arith.tab.h ]; then \ mv arith.tab.h arith.h || true; \ fi; \ if [ -f y.tab.h ]; then \ mv y.tab.h arith.h || true; \ fi; \ rm -f arith.tab.h y.tab.h; \ else \ touch arith.h; \ fi arith.c: arith.y if [ -n "${REGEN_ARITH}" ]; then \ ${YACC} arith.y; \ if [ -f arith.tab.c ]; then \ mv arith.tab.c arith.c || true; \ fi; \ if [ -f y.tab.c ]; then \ mv y.tab.c arith.c || true; \ fi; \ rm -f arith.tab.c y.tab.c; \ else \ touch arith.c; \ fi arith_lex.c: arith_lex.l if [ -n "${REGEN_ARITH}" ]; then \ ${LEX} arith_lex.l; \ mv lex.yy.c arith_lex.c; \ else \ touch arith_lex.c; \ fi token.h: mktokens ${SH} ./mktokens builtins.h: builtins.c [ -f builtins.h ] builtins.c: mkbuiltins shell.h builtins.def ${SH} ./mkbuiltins shell.h builtins.def . [ -f builtins.h ] touch builtins.h init.c: mkinit ${SHSRCS} ./mkinit ${SHSRCS} nodes.h: nodes.c [ -f nodes.h ] nodes.c: mknodes nodetypes nodes.c.pat ./mknodes nodetypes nodes.c.pat [ -f nodes.h ] touch nodes.h syntax.h: syntax.c [ -f syntax.h ] syntax.c: mksyntax ./mksyntax [ -f syntax.h ] touch syntax.h mkinit: mkinit.c ${CC} ${CFLAGS} -o mkinit mkinit.c mknodes: mknodes.c ${CC} ${CFLAGS} -o mknodes mknodes.c mksyntax: mksyntax.c ${CC} ${CFLAGS} ${TARGET_CHARFLAG} -o mksyntax mksyntax.c install: @${INSTALL_DIR} ${DESTDIR}${DIR_DOC} @${INSTALL_DIR} ${DESTDIR}${DIR_MODS} @${INSTALL_BIN} bt_sh ${DESTDIR}${DIR_MODS} @${INSTALL_DATA} DIFFS ${DESTDIR}${DIR_DOC}/DIFFS.bt_sh # $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 ]