mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
46 lines
641 B
Makefile
46 lines
641 B
Makefile
|
TARG=mk
|
||
|
VERSION=2.0
|
||
|
PORTPLACE=devel/mk
|
||
|
NAME=mk
|
||
|
|
||
|
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\
|
||
|
rule.$O\
|
||
|
run.$O\
|
||
|
sh.$O\
|
||
|
shprint.$O\
|
||
|
symtab.$O\
|
||
|
var.$O\
|
||
|
varsub.$O\
|
||
|
word.$O\
|
||
|
unix.$O\
|
||
|
|
||
|
HFILES=\
|
||
|
mk.h\
|
||
|
fns.h\
|
||
|
|
||
|
all: $(TARG)
|
||
|
|
||
|
TGZFILES+=mk.pdf
|
||
|
|
||
|
install: $(LIB)
|
||
|
test -d $(PREFIX)/man/man1 || mkdir $(PREFIX)/man/man1
|
||
|
test -d $(PREFIX)/doc || mkdir $(PREFIX)/doc
|
||
|
install -m 0755 mk $(PREFIX)/bin/mk
|
||
|
cat mk.1 | sed 's;DOCPREFIX;$(PREFIX);g' >mk.1a
|
||
|
install -m 0644 mk.1a $(PREFIX)/man/man1/mk.1
|
||
|
install -m 0644 mk.pdf $(PREFIX)/doc/mk.pdf
|
||
|
|