Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.20
      1 #	$NetBSD: Makefile,v 1.20 2003/10/21 10:01:19 lukem Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 CPPFLAGS+=	-DHAVE_CONFIG_H -I.
      6 
      7 WARNS?=	1
      8 PROG=	ksh
      9 SRCS=	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
     13 DPSRCS=	emacs.out siglist.out
     14 .if (${MKMAN} != "no")
     15 DPSRCS+=ksh.1
     16 .endif
     17 
     18 # needs tbl for the man page.
     19 USETBL= 
     20 
     21 CLEANFILES+=	siglist.out siglist.out.tmp
     22 # two steps to prevent the creation of a bogus siglist.out
     23 siglist.out: config.h sh.h siglist.in siglist.sh
     24 	${_MKTARGET_CREATE}
     25 	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
     26 	    && mv siglist.out.tmp siglist.out
     27 
     28 # two steps to prevent the creation of a bogus emacs.out
     29 CLEANFILES+=	emacs.out emacs.out.tmp
     30 emacs.out: emacs.c
     31 	${_MKTARGET_CREATE}
     32 	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
     33 	    && mv emacs.out.tmp emacs.out
     34 
     35 CLEANFILES+=	ksh.1 ksh.1.tmp
     36 ksh.1: ksh.Man mkman
     37 	${_MKTARGET_CREATE}
     38 	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
     39 	    && mv ksh.1.tmp ksh.1
     40 
     41 .include <bsd.prog.mk>
     42