Makefile revision 1.15
11.15Ssimonb#	$NetBSD: Makefile,v 1.15 2001/05/15 23:50:36 simonb Exp $
21.15Ssimonb
31.15Ssimonb.include <bsd.own.mk>
41.6Smycroft
51.10SchristosCPPFLAGS+=	-DHAVE_CONFIG_H -I.
61.1Sjtc
71.1SjtcPROG=	ksh
81.6SmycroftSRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
91.1Sjtc	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
101.2Sjtc	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
111.1Sjtc	tree.c tty.c var.c version.c vi.c
121.15SsimonbDPSRCS=	emacs.out siglist.out
131.15Ssimonb.if (${MKMAN} != "no")
141.15SsimonbDPSRCS+=ksh.1
151.15Ssimonb.endif
161.7Sphil
171.7Sphil# needs tbl for the man page.
181.7SphilUSETBL= 
191.13Ssoren
201.13SsorenCLEANFILES+=	siglist.out emacs.out
211.1Sjtc
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.14Skleink	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
251.1Sjtc	mv tmpsiglist.out siglist.out
261.1Sjtc
271.1Sjtc# two steps to prevent the creation of a bogus emacs.out
281.1Sjtcemacs.out: emacs.c
291.4Sperry	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
301.1Sjtc	mv tmpemacs.out emacs.out
311.12Shubertf
321.12Shubertfksh.1: ksh.Man mkman
331.12Shubertf	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
341.12Shubertf	mv tmpksh.1 ksh.1
351.11Slukem
361.11Slukememacs.o:	emacs.out
371.11Slukemtrap.o:		siglist.out
381.1Sjtc
391.1Sjtc.include <bsd.prog.mk>
40