Cross Reference: Makefile
xref: /src/bin/ksh/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/bin/ksh/
Makefile revision 1.24
1#	$NetBSD: Makefile,v 1.24 2008/10/20 07:11:55 apb Exp $
2
3.include <bsd.own.mk>
4
5CPPFLAGS+=	-I.
6
7PROG=	ksh
8SRCS=	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
12DPSRCS=	emacs.out siglist.out
13.if (${MKMAN} != "no")
14DPSRCS+=ksh.1
15.endif
16
17# needs tbl for the man page.
18USETBL= 
19
20# Environment for scripts executed during build.
21SCRIPT_ENV= \
22	AWK=${TOOL_AWK:Q} \
23
24CLEANFILES+=	siglist.out siglist.out.tmp
25# two steps to prevent the creation of a bogus siglist.out
26siglist.out: config.h sh.h siglist.in siglist.sh
27	${_MKTARGET_CREATE}
28	${SCRIPT_ENV} \
29	${HOST_SH} $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > siglist.out.tmp \
30	    && mv siglist.out.tmp siglist.out
31
32# two steps to prevent the creation of a bogus emacs.out
33CLEANFILES+=	emacs.out emacs.out.tmp
34emacs.out: emacs.c
35	${_MKTARGET_CREATE}
36	${SCRIPT_ENV} \
37	${HOST_SH} $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > emacs.out.tmp \
38	    && mv emacs.out.tmp emacs.out
39
40CLEANFILES+=	ksh.1 ksh.1.tmp
41ksh.1: ksh.Man mkman
42	${_MKTARGET_CREATE}
43	${SCRIPT_ENV} \
44	${HOST_SH} $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >ksh.1.tmp \
45	    && mv ksh.1.tmp ksh.1
46
47.include <bsd.prog.mk>
48

Indexes created Thu Dec 04 23:09:28 GMT 2025