Makefile revision 1.19
1# $NetBSD: Makefile,v 1.19 2003/10/19 04:45:01 lukem Exp $ 2 3.include <bsd.own.mk> 4 5CPPFLAGS+= -DHAVE_CONFIG_H -I. 6 7WARNS?= 1 8PROG= ksh 9SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ 10 eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \ 11 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \ 12 tree.c tty.c var.c version.c vi.c 13DPSRCS= emacs.out siglist.out 14.if (${MKMAN} != "no") 15DPSRCS+=ksh.1 16.endif 17 18# needs tbl for the man page. 19USETBL= 20 21CLEANFILES+= siglist.out siglist.out.tmp 22# two steps to prevent the creation of a bogus siglist.out 23siglist.out: config.h sh.h siglist.in siglist.sh 24 ${_MKMSGCREATE} 25 ${_MKCMD}\ 26 sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \ 27 && mv siglist.out.tmp siglist.out 28 29# two steps to prevent the creation of a bogus emacs.out 30CLEANFILES+= emacs.out emacs.out.tmp 31emacs.out: emacs.c 32 ${_MKMSGCREATE} 33 ${_MKCMD}\ 34 sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \ 35 && mv emacs.out.tmp emacs.out 36 37CLEANFILES+= ksh.1 ksh.1.tmp 38ksh.1: ksh.Man mkman 39 ${_MKMSGCREATE} 40 ${_MKCMD}\ 41 sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \ 42 && mv ksh.1.tmp ksh.1 43 44.include <bsd.prog.mk> 45