1 1.19 lukem # $NetBSD: Makefile,v 1.19 2003/10/19 04:45:01 lukem Exp $ 2 1.15 simonb 3 1.15 simonb .include <bsd.own.mk> 4 1.6 mycroft 5 1.10 christos CPPFLAGS+= -DHAVE_CONFIG_H -I. 6 1.1 jtc 7 1.16 lukem WARNS?= 1 8 1.1 jtc PROG= ksh 9 1.6 mycroft SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 10 1.1 jtc eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 11 1.2 jtc main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 12 1.1 jtc tree.c tty.c var.c version.c vi.c 13 1.15 simonb DPSRCS= emacs.out siglist.out 14 1.15 simonb .if (${MKMAN} != "no") 15 1.15 simonb DPSRCS+=ksh.1 16 1.15 simonb .endif 17 1.7 phil 18 1.7 phil # needs tbl for the man page. 19 1.7 phil USETBL= 20 1.13 soren 21 1.17 lukem CLEANFILES+= siglist.out siglist.out.tmp 22 1.1 jtc # two steps to prevent the creation of a bogus siglist.out 23 1.1 jtc siglist.out: config.h sh.h siglist.in siglist.sh 24 1.19 lukem ${_MKMSGCREATE} 25 1.18 lukem ${_MKCMD}\ 26 1.17 lukem sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \ 27 1.17 lukem && mv siglist.out.tmp siglist.out 28 1.1 jtc 29 1.1 jtc # two steps to prevent the creation of a bogus emacs.out 30 1.17 lukem CLEANFILES+= emacs.out emacs.out.tmp 31 1.1 jtc emacs.out: emacs.c 32 1.19 lukem ${_MKMSGCREATE} 33 1.18 lukem ${_MKCMD}\ 34 1.17 lukem sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \ 35 1.17 lukem && mv emacs.out.tmp emacs.out 36 1.12 hubertf 37 1.17 lukem CLEANFILES+= ksh.1 ksh.1.tmp 38 1.12 hubertf ksh.1: ksh.Man mkman 39 1.19 lukem ${_MKMSGCREATE} 40 1.18 lukem ${_MKCMD}\ 41 1.17 lukem sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \ 42 1.17 lukem && mv ksh.1.tmp ksh.1 43 1.1 jtc 44 1.1 jtc .include <bsd.prog.mk> 45