Makefile revision 1.24
11.24Sapb# $NetBSD: Makefile,v 1.24 2008/10/20 07:11:55 apb Exp $ 21.15Ssimonb 31.15Ssimonb.include <bsd.own.mk> 41.6Smycroft 51.22SlukemCPPFLAGS+= -I. 61.1Sjtc 71.1SjtcPROG= ksh 81.6SmycroftSRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 91.1Sjtc eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 101.2Sjtc main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 111.1Sjtc tree.c tty.c var.c version.c vi.c 121.15SsimonbDPSRCS= emacs.out siglist.out 131.15Ssimonb.if (${MKMAN} != "no") 141.15SsimonbDPSRCS+=ksh.1 151.15Ssimonb.endif 161.7Sphil 171.7Sphil# needs tbl for the man page. 181.7SphilUSETBL= 191.13Ssoren 201.24Sapb# Environment for scripts executed during build. 211.24SapbSCRIPT_ENV= \ 221.24Sapb AWK=${TOOL_AWK:Q} \ 231.24Sapb 241.17SlukemCLEANFILES+= siglist.out siglist.out.tmp 251.1Sjtc# two steps to prevent the creation of a bogus siglist.out 261.1Sjtcsiglist.out: config.h sh.h siglist.in siglist.sh 271.20Slukem ${_MKTARGET_CREATE} 281.24Sapb ${SCRIPT_ENV} \ 291.21Slukem ${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \ 301.17Slukem && mv siglist.out.tmp siglist.out 311.1Sjtc 321.1Sjtc# two steps to prevent the creation of a bogus emacs.out 331.17SlukemCLEANFILES+= emacs.out emacs.out.tmp 341.1Sjtcemacs.out: emacs.c 351.20Slukem ${_MKTARGET_CREATE} 361.24Sapb ${SCRIPT_ENV} \ 371.21Slukem ${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \ 381.17Slukem && mv emacs.out.tmp emacs.out 391.12Shubertf 401.17SlukemCLEANFILES+= ksh.1 ksh.1.tmp 411.12Shubertfksh.1: ksh.Man mkman 421.20Slukem ${_MKTARGET_CREATE} 431.24Sapb ${SCRIPT_ENV} \ 441.21Slukem ${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \ 451.17Slukem && mv ksh.1.tmp ksh.1 461.1Sjtc 471.1Sjtc.include <bsd.prog.mk> 48