1 1.15 simonb # $NetBSD: Makefile,v 1.15 2001/05/15 23:50:36 simonb 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.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.13 soren CLEANFILES+= siglist.out emacs.out 21 1.1 jtc 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.14 kleink sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out 25 1.1 jtc mv tmpsiglist.out siglist.out 26 1.1 jtc 27 1.1 jtc # two steps to prevent the creation of a bogus emacs.out 28 1.1 jtc emacs.out: emacs.c 29 1.4 perry sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 30 1.1 jtc mv tmpemacs.out emacs.out 31 1.12 hubertf 32 1.12 hubertf ksh.1: ksh.Man mkman 33 1.12 hubertf sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1 34 1.12 hubertf mv tmpksh.1 ksh.1 35 1.11 lukem 36 1.11 lukem emacs.o: emacs.out 37 1.11 lukem trap.o: siglist.out 38 1.1 jtc 39 1.1 jtc .include <bsd.prog.mk> 40