aboutsummaryrefslogtreecommitdiff
path: root/unix/make/Makefile.mk
blob: 55080da92fc61d0ce362f46199afd82507c207cf (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
TARG=mk
VERSION=2.0
PORTPLACE=devel/mk
NAME=mk
CLEANFILES=mk mk.1a

OFILES=\
	arc.$O\
	archive.$O\
	bufblock.$O\
	env.$O\
	file.$O\
	graph.$O\
	job.$O\
	lex.$O\
	main.$O\
	match.$O\
	mk.$O\
	parse.$O\
	recipe.$O\
	rc.$O\
	rule.$O\
	run.$O\
	sh.$O\
	shell.$O\
	shprint.$O\
	symtab.$O\
	var.$O\
	varsub.$O\
	word.$O\
	unix.$O\

HFILES=\
	mk.h\
	fns.h\

all: $(TARG)

TGZFILES+=mk.pdf

install: $(TARG)
	mkdir -p $(PREFIX)/bin
	install -m 0755 mk $(PREFIX)/bin/mk
	cat mk.1 | sed 's;DOCPREFIX;$(PREFIX);g' >mk.1a
	mkdir -p $(PREFIX)/man/man1
	install -m 0644 mk.1a $(PREFIX)/man/man1/mk.1
	mkdir -p $(PREFIX)/doc
	install -m 0644 mk.pdf $(PREFIX)/doc/mk.pdf