mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
tweaks
This commit is contained in:
parent
0215fd56db
commit
d3a25066c9
12 changed files with 25 additions and 30 deletions
|
@ -15,7 +15,7 @@ tgz:
|
||||||
rm -rf $(NAME)-$(VERSION)
|
rm -rf $(NAME)-$(VERSION)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OFILES) $(LIB)
|
rm -f $(OFILES) $(LIB) $(CLEANFILES)
|
||||||
|
|
||||||
nuke:
|
nuke:
|
||||||
rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES)
|
rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES)
|
||||||
|
|
|
@ -2,7 +2,3 @@
|
||||||
$(TARG): $(OFILES)
|
$(TARG): $(OFILES)
|
||||||
$(CC) -o $(TARG) $(OFILES) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf
|
$(CC) -o $(TARG) $(OFILES) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf
|
||||||
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(OFILES) $(TARG)
|
|
||||||
|
|
||||||
|
|
|
@ -18,3 +18,5 @@ NUKEFILES=
|
||||||
|
|
||||||
TGZFILES=
|
TGZFILES=
|
||||||
|
|
||||||
|
CLEANFILES=
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,11 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
|
mkdir -p $(PREFIX)/man/man3
|
||||||
install -m 0644 bio.3 $(PREFIX)/man/man3/bio.3
|
install -m 0644 bio.3 $(PREFIX)/man/man3/bio.3
|
||||||
|
mkdir -p $(PREFIX)/include
|
||||||
install -m 0644 bio.h $(PREFIX)/include
|
install -m 0644 bio.h $(PREFIX)/include
|
||||||
|
mkdir -p $(PREFIX)/lib
|
||||||
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
||||||
|
|
||||||
bcat: bcat.$O $(LIB)
|
bcat: bcat.$O $(LIB)
|
||||||
|
|
|
@ -53,7 +53,9 @@ install: $(LIB)
|
||||||
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
|
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
|
||||||
install -m 0644 print.3 $(PREFIX)/man/man3/print.3
|
install -m 0644 print.3 $(PREFIX)/man/man3/print.3
|
||||||
install -m 0644 fmtinstall.3 $(PREFIX)/man/man3/fmtinstall.3
|
install -m 0644 fmtinstall.3 $(PREFIX)/man/man3/fmtinstall.3
|
||||||
|
mkdir -p $(PREFIX)/include
|
||||||
install -m 0644 fmt.h $(PREFIX)/include/fmt.h
|
install -m 0644 fmt.h $(PREFIX)/include/fmt.h
|
||||||
|
mkdir -p $(PREFIX)/lib
|
||||||
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
||||||
|
|
||||||
$(NAN).$O: nan.h
|
$(NAN).$O: nan.h
|
||||||
|
|
|
@ -2,6 +2,7 @@ TARG=mk
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PORTPLACE=devel/mk
|
PORTPLACE=devel/mk
|
||||||
NAME=mk
|
NAME=mk
|
||||||
|
CLEANFILES=mk mk.1a
|
||||||
|
|
||||||
OFILES=\
|
OFILES=\
|
||||||
arc.$O\
|
arc.$O\
|
||||||
|
@ -38,10 +39,11 @@ all: $(TARG)
|
||||||
TGZFILES+=mk.pdf
|
TGZFILES+=mk.pdf
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
test -d $(PREFIX)/man/man1 || mkdir $(PREFIX)/man/man1
|
mkdir -p $(PREFIX)/bin
|
||||||
test -d $(PREFIX)/doc || mkdir $(PREFIX)/doc
|
|
||||||
install -m 0755 mk $(PREFIX)/bin/mk
|
install -m 0755 mk $(PREFIX)/bin/mk
|
||||||
cat mk.1 | sed 's;DOCPREFIX;$(PREFIX);g' >mk.1a
|
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
|
install -m 0644 mk.1a $(PREFIX)/man/man1/mk.1
|
||||||
|
mkdir -p $(PREFIX)/doc
|
||||||
install -m 0644 mk.pdf $(PREFIX)/doc/mk.pdf
|
install -m 0644 mk.pdf $(PREFIX)/doc/mk.pdf
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,12 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
|
mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7
|
||||||
test -d $(PREFIX)/man/man7 || mkdir $(PREFIX)/man/man7
|
|
||||||
install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3
|
install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3
|
||||||
install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7
|
install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7
|
||||||
|
mkdir -p $(PREFIX)/lib
|
||||||
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
||||||
|
mdir -p $(PREFIX)/include
|
||||||
install -m 0644 regexp9.h $(PREFIX)/include/regexp9.h
|
install -m 0644 regexp9.h $(PREFIX)/include/regexp9.h
|
||||||
|
|
||||||
test: test.$O $(LIB)
|
test: test.$O $(LIB)
|
||||||
|
|
|
@ -36,6 +36,8 @@ install: $(LIB)
|
||||||
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
||||||
install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
|
install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
|
||||||
install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3
|
install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3
|
||||||
|
mkdir -p $(PREFIX)/include
|
||||||
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
|
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
|
||||||
|
mkdir -p $(PREFIX)/lib
|
||||||
install -c -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
install -c -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
||||||
|
|
||||||
|
|
|
@ -659,6 +659,7 @@ A. Hume,
|
||||||
.PP
|
.PP
|
||||||
Andrew G. Hume and Bob Flandrena,
|
Andrew G. Hume and Bob Flandrena,
|
||||||
``Maintaining Files on Plan 9 with Mk''.
|
``Maintaining Files on Plan 9 with Mk''.
|
||||||
|
.BR DOCPREFIX/doc/mk.pdf .
|
||||||
.SH HISTORY
|
.SH HISTORY
|
||||||
Andrew Hume wrote
|
Andrew Hume wrote
|
||||||
.I mk
|
.I mk
|
||||||
|
|
|
@ -1,17 +1,3 @@
|
||||||
MAN=\
|
|
||||||
isalpharune.3\
|
|
||||||
rune.3\
|
|
||||||
runestrcat.3\
|
|
||||||
utf.7\
|
|
||||||
print.3\
|
|
||||||
fmtinstall.3\
|
|
||||||
quote.3\
|
|
||||||
fmtstrtod.3\
|
|
||||||
bio.3\
|
|
||||||
regexp9.3\
|
|
||||||
regexp9.7\
|
|
||||||
mk.1\
|
|
||||||
|
|
||||||
HTML=\
|
HTML=\
|
||||||
isalpharune3.html\
|
isalpharune3.html\
|
||||||
rune3.html\
|
rune3.html\
|
||||||
|
@ -26,7 +12,7 @@ HTML=\
|
||||||
regexp97.html\
|
regexp97.html\
|
||||||
mk1.html\
|
mk1.html\
|
||||||
|
|
||||||
all:V: $MAN $HTML
|
all:V: $HTML
|
||||||
|
|
||||||
title='Ported from Plan 9'
|
title='Ported from Plan 9'
|
||||||
MKSHELL=$PLAN9/bin/rc
|
MKSHELL=$PLAN9/bin/rc
|
||||||
|
|
10
unix/mkfile
10
unix/mkfile
|
@ -38,15 +38,15 @@ test-%:V:
|
||||||
|
|
||||||
lib%.tgz:V:
|
lib%.tgz:V:
|
||||||
mk new-$stem
|
mk new-$stem
|
||||||
tar cf - lib$stem |gzip >lib$stem.tgz
|
tar cf $target lib$stem
|
||||||
|
|
||||||
libregexp9.tgz:V:
|
libregexp9.tgz:V:
|
||||||
mk new-regexp
|
mk new-regexp
|
||||||
tar cf - libregexp | gzip >libregexp9.tgz
|
tar cf $target libregexp
|
||||||
|
|
||||||
mk.tgz:V:
|
mk.tgz:V:
|
||||||
mk new-mk
|
mk new-mk
|
||||||
tar cf - mk | gzip >mk.tgz
|
tar cf $target mk
|
||||||
|
|
||||||
mk-with-libs.tgz:V:
|
mk-with-libs.tgz:V:
|
||||||
mk new-utf
|
mk new-utf
|
||||||
|
@ -59,12 +59,12 @@ mk-with-libs.tgz:V:
|
||||||
mv libutf libfmt libbio libregexp mk zot
|
mv libutf libfmt libbio libregexp mk zot
|
||||||
mv zot mk
|
mv zot mk
|
||||||
cp Makefile mk/Makefile
|
cp Makefile mk/Makefile
|
||||||
tar cf - mk | gzip >$target
|
tar cf $target mk
|
||||||
rm -r mk
|
rm -r mk
|
||||||
|
|
||||||
tgz:V: libutf.tgz libfmt.tgz libregexp9.tgz libbio.tgz mk.tgz mk-with-libs.tgz
|
tgz:V: libutf.tgz libfmt.tgz libregexp9.tgz libbio.tgz mk.tgz mk-with-libs.tgz
|
||||||
|
|
||||||
push:
|
push:
|
||||||
rsync -e ssh -t *.tgz swtch:www/swtch.com/plan9port/unix
|
rsync -e ssh -t *.tgz swtch:www/swtch.com/plan9port/unix
|
||||||
ssh swtch rm www/swtch.com/plan9port/unix/*.sha1 \
|
ssh swtch rm -f www/swtch.com/plan9port/unix/*.sha1 \
|
||||||
www/swtch.com/plan9port/unix/*.md5
|
www/swtch.com/plan9port/unix/*.md5
|
||||||
|
|
|
@ -8,6 +8,7 @@ TARG=\
|
||||||
mk.h\
|
mk.h\
|
||||||
sys.h\
|
sys.h\
|
||||||
fns.h\
|
fns.h\
|
||||||
|
mk.pdf\
|
||||||
`{9 ls -p $PLAN9/src/cmd/mk/*.c}\
|
`{9 ls -p $PLAN9/src/cmd/mk/*.c}\
|
||||||
|
|
||||||
WHAT=mk
|
WHAT=mk
|
||||||
|
|
Loading…
Reference in a new issue