Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.17
      1 #	$NetBSD: Makefile,v 1.17 2003/08/01 17:03:42 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 	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
     28 CLEANFILES+=	emacs.out emacs.out.tmp
     29 emacs.out: emacs.c
     30 	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
     31 	    && mv emacs.out.tmp emacs.out
     32 
     33 CLEANFILES+=	ksh.1 ksh.1.tmp
     34 ksh.1: ksh.Man mkman
     35 	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
     36 	    && mv ksh.1.tmp ksh.1
     37 
     38 .include <bsd.prog.mk>
     39