2003-10-26 12:30:55 +03:00
|
|
|
# $NetBSD: Makefile,v 1.22 2003/10/26 09:30:55 lukem Exp $
|
2001-05-16 03:50:36 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1997-05-09 17:28:39 +04:00
|
|
|
|
2003-10-26 12:30:55 +03:00
|
|
|
CPPFLAGS+= -I.
|
1996-09-22 03:35:13 +04:00
|
|
|
|
2001-11-03 16:39:25 +03:00
|
|
|
WARNS?= 1
|
1996-09-22 03:35:13 +04:00
|
|
|
PROG= ksh
|
1997-05-09 17:28:39 +04:00
|
|
|
SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
|
1996-09-22 03:35:13 +04:00
|
|
|
eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
|
1996-10-10 18:17:02 +04:00
|
|
|
main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
|
1996-09-22 03:35:13 +04:00
|
|
|
tree.c tty.c var.c version.c vi.c
|
2001-05-16 03:50:36 +04:00
|
|
|
DPSRCS= emacs.out siglist.out
|
|
|
|
.if (${MKMAN} != "no")
|
|
|
|
DPSRCS+=ksh.1
|
|
|
|
.endif
|
1996-09-22 03:35:13 +04:00
|
|
|
|
1997-06-30 23:30:04 +04:00
|
|
|
# needs tbl for the man page.
|
|
|
|
USETBL=
|
|
|
|
|
2003-08-01 21:03:41 +04:00
|
|
|
CLEANFILES+= siglist.out siglist.out.tmp
|
1996-09-22 03:35:13 +04:00
|
|
|
# two steps to prevent the creation of a bogus siglist.out
|
|
|
|
siglist.out: config.h sh.h siglist.in siglist.sh
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-26 10:25:33 +03:00
|
|
|
${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
|
2003-08-01 21:03:41 +04:00
|
|
|
&& mv siglist.out.tmp siglist.out
|
1996-09-22 03:35:13 +04:00
|
|
|
|
|
|
|
# two steps to prevent the creation of a bogus emacs.out
|
2003-08-01 21:03:41 +04:00
|
|
|
CLEANFILES+= emacs.out emacs.out.tmp
|
1996-09-22 03:35:13 +04:00
|
|
|
emacs.out: emacs.c
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-26 10:25:33 +03:00
|
|
|
${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
|
2003-08-01 21:03:41 +04:00
|
|
|
&& mv emacs.out.tmp emacs.out
|
1996-09-22 03:35:13 +04:00
|
|
|
|
2003-08-01 21:03:41 +04:00
|
|
|
CLEANFILES+= ksh.1 ksh.1.tmp
|
1999-10-20 19:09:58 +04:00
|
|
|
ksh.1: ksh.Man mkman
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-26 10:25:33 +03:00
|
|
|
${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
|
2003-08-01 21:03:41 +04:00
|
|
|
&& mv ksh.1.tmp ksh.1
|
1997-10-22 05:36:36 +04:00
|
|
|
|
1996-09-22 03:35:13 +04:00
|
|
|
.include <bsd.prog.mk>
|