Home | History | Annotate | Line # | Download | only in ksh
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 
      5 CPPFLAGS+=	-I.
      6 
      7 PROG=	ksh
      8 SRCS=	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
     12 DPSRCS=	emacs.out siglist.out
     13 .if (${MKMAN} != "no")
     14 DPSRCS+=ksh.1
     15 .endif
     16 
     17 # needs tbl for the man page.
     18 USETBL= 
     19 
     20 CLEANFILES+=	siglist.out siglist.out.tmp
     21 # two steps to prevent the creation of a bogus siglist.out
     22 siglist.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
     28 CLEANFILES+=	emacs.out emacs.out.tmp
     29 emacs.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 
     34 CLEANFILES+=	ksh.1 ksh.1.tmp
     35 ksh.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