Makefile revision 1.13
1# $NetBSD: Makefile,v 1.13 2000/06/22 05:42:22 soren Exp $ 2 3CPPFLAGS+= -DHAVE_CONFIG_H -I. 4 5PROG= ksh 6SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 7 eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 8 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 9 tree.c tty.c var.c version.c vi.c 10DPSRCS= emacs.out siglist.out ksh.1 11 12# needs tbl for the man page. 13USETBL= 14 15CLEANFILES+= siglist.out emacs.out 16 17# two steps to prevent the creation of a bogus siglist.out 18siglist.out: config.h sh.h siglist.in siglist.sh 19 sh $(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out 20 mv tmpsiglist.out siglist.out 21 22# two steps to prevent the creation of a bogus emacs.out 23emacs.out: emacs.c 24 sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out 25 mv tmpemacs.out emacs.out 26 27ksh.1: ksh.Man mkman 28 sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1 29 mv tmpksh.1 ksh.1 30 31emacs.o: emacs.out 32trap.o: siglist.out 33 34.include <bsd.prog.mk> 35