summaryrefslogtreecommitdiff
path: root/bin/ksh/Makefile
blob: 044beb6620108302c954a80ebaaaddc7acca4da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#	$NetBSD: Makefile,v 1.14 2000/06/26 06:18:07 kleink Exp $

CPPFLAGS+=	-DHAVE_CONFIG_H -I.

PROG=	ksh
SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
	main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
	tree.c tty.c var.c version.c vi.c
DPSRCS=	emacs.out siglist.out ksh.1

# needs tbl for the man page.
USETBL= 

CLEANFILES+=	siglist.out emacs.out

# two steps to prevent the creation of a bogus siglist.out
siglist.out: config.h sh.h siglist.in siglist.sh
	sh $(.CURDIR)/siglist.sh "$(CC) -E $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
	mv tmpsiglist.out siglist.out

# two steps to prevent the creation of a bogus emacs.out
emacs.out: emacs.c
	sh $(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
	mv tmpemacs.out emacs.out

ksh.1: ksh.Man mkman
	sh $(.CURDIR)/mkman ksh $(.CURDIR)/ksh.Man >tmpksh.1
	mv tmpksh.1 ksh.1

emacs.o:	emacs.out
trap.o:		siglist.out

.include <bsd.prog.mk>