# $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