Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.24
      1  1.24      apb #	$NetBSD: Makefile,v 1.24 2008/10/20 07:11:55 apb Exp $
      2  1.15   simonb 
      3  1.15   simonb .include <bsd.own.mk>
      4   1.6  mycroft 
      5  1.22    lukem CPPFLAGS+=	-I.
      6   1.1      jtc 
      7   1.1      jtc PROG=	ksh
      8   1.6  mycroft SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
      9   1.1      jtc 	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
     10   1.2      jtc 	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
     11   1.1      jtc 	tree.c tty.c var.c version.c vi.c
     12  1.15   simonb DPSRCS=	emacs.out siglist.out
     13  1.15   simonb .if (${MKMAN} != "no")
     14  1.15   simonb DPSRCS+=ksh.1
     15  1.15   simonb .endif
     16   1.7     phil 
     17   1.7     phil # needs tbl for the man page.
     18   1.7     phil USETBL= 
     19  1.13    soren 
     20  1.24      apb # Environment for scripts executed during build.
     21  1.24      apb SCRIPT_ENV= \
     22  1.24      apb 	AWK=${TOOL_AWK:Q} \
     23  1.24      apb 
     24  1.17    lukem CLEANFILES+=	siglist.out siglist.out.tmp
     25   1.1      jtc # two steps to prevent the creation of a bogus siglist.out
     26   1.1      jtc siglist.out: config.h sh.h siglist.in siglist.sh
     27  1.20    lukem 	${_MKTARGET_CREATE}
     28  1.24      apb 	${SCRIPT_ENV} \
     29  1.21    lukem 	${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
     30  1.17    lukem 	    && mv siglist.out.tmp siglist.out
     31   1.1      jtc 
     32   1.1      jtc # two steps to prevent the creation of a bogus emacs.out
     33  1.17    lukem CLEANFILES+=	emacs.out emacs.out.tmp
     34   1.1      jtc emacs.out: emacs.c
     35  1.20    lukem 	${_MKTARGET_CREATE}
     36  1.24      apb 	${SCRIPT_ENV} \
     37  1.21    lukem 	${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
     38  1.17    lukem 	    && mv emacs.out.tmp emacs.out
     39  1.12  hubertf 
     40  1.17    lukem CLEANFILES+=	ksh.1 ksh.1.tmp
     41  1.12  hubertf ksh.1: ksh.Man mkman
     42  1.20    lukem 	${_MKTARGET_CREATE}
     43  1.24      apb 	${SCRIPT_ENV} \
     44  1.21    lukem 	${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
     45  1.17    lukem 	    && mv ksh.1.tmp ksh.1
     46   1.1      jtc 
     47   1.1      jtc .include <bsd.prog.mk>
     48