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