Makefile revision 1.16
11.16Slukem#	$NetBSD: Makefile,v 1.16 2001/11/03 13:39:25 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.13SsorenCLEANFILES+=	siglist.out emacs.out
221.1Sjtc
231.1Sjtc# two steps to prevent the creation of a bogus siglist.out
241.1Sjtcsiglist.out: config.h sh.h siglist.in siglist.sh
251.14Skleink	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
261.1Sjtc	mv tmpsiglist.out siglist.out
271.1Sjtc
281.1Sjtc# two steps to prevent the creation of a bogus emacs.out
291.1Sjtcemacs.out: emacs.c
301.4Sperry	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
311.1Sjtc	mv tmpemacs.out emacs.out
321.12Shubertf
331.12Shubertfksh.1: ksh.Man mkman
341.12Shubertf	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
351.12Shubertf	mv tmpksh.1 ksh.1
361.11Slukem
371.11Slukememacs.o:	emacs.out
381.11Slukemtrap.o:		siglist.out
391.1Sjtc
401.1Sjtc.include <bsd.prog.mk>
41