Makefile revision 1.17
11.17Slukem#	$NetBSD: Makefile,v 1.17 2003/08/01 17:03:42 lukem Exp $
21.15Ssimonb
31.15Ssimonb.include <bsd.own.mk>
41.6Smycroft
51.10SchristosCPPFLAGS+=	-DHAVE_CONFIG_H -I.
61.1Sjtc
71.16SlukemWARNS?=	1
81.1SjtcPROG=	ksh
91.6SmycroftSRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
101.1Sjtc	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
111.2Sjtc	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
121.1Sjtc	tree.c tty.c var.c version.c vi.c
131.15SsimonbDPSRCS=	emacs.out siglist.out
141.15Ssimonb.if (${MKMAN} != "no")
151.15SsimonbDPSRCS+=ksh.1
161.15Ssimonb.endif
171.7Sphil
181.7Sphil# needs tbl for the man page.
191.7SphilUSETBL= 
201.13Ssoren
211.17SlukemCLEANFILES+=	siglist.out siglist.out.tmp
221.1Sjtc# two steps to prevent the creation of a bogus siglist.out
231.1Sjtcsiglist.out: config.h sh.h siglist.in siglist.sh
241.17Slukem	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
251.17Slukem	    && mv siglist.out.tmp siglist.out
261.1Sjtc
271.1Sjtc# two steps to prevent the creation of a bogus emacs.out
281.17SlukemCLEANFILES+=	emacs.out emacs.out.tmp
291.1Sjtcemacs.out: emacs.c
301.17Slukem	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
311.17Slukem	    && mv emacs.out.tmp emacs.out
321.12Shubertf
331.17SlukemCLEANFILES+=	ksh.1 ksh.1.tmp
341.12Shubertfksh.1: ksh.Man mkman
351.17Slukem	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
361.17Slukem	    && mv ksh.1.tmp ksh.1
371.1Sjtc
381.1Sjtc.include <bsd.prog.mk>
39