Home | History | Annotate | Line # | Download | only in ksh
Makefile revision 1.18
      1 #	$NetBSD: Makefile,v 1.18 2003/10/19 00:18:53 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 	${_MKMSG} " create  ${.TARGET}"
     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
     30 CLEANFILES+=	emacs.out emacs.out.tmp
     31 emacs.out: emacs.c
     32 	${_MKMSG} " create  ${.TARGET}"
     33 	${_MKCMD}\
     34 	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
     35 	    && mv emacs.out.tmp emacs.out
     36 
     37 CLEANFILES+=	ksh.1 ksh.1.tmp
     38 ksh.1: ksh.Man mkman
     39 	${_MKMSG} " create  ${.TARGET}"
     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