summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 13:15:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 13:15:55 +0000
commit4787a4142e096d18cc8d1664421833e0e38bcb83 (patch)
tree92b494fc7c4de80b3c39fb763f81ad7069b7fcf3 /Makefile
parent632958c28b350640c09d493567691b855c78626b (diff)
downloadmandoc-4787a4142e096d18cc8d1664421833e0e38bcb83.tar.gz
Put prelude checking into asec.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a690a8c2..4494c3c5 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ all: mdocml
lint: llib-lmdocml.ln
-dist: mdocml.tgz
+dist: mdocml.tgz mdocml-port.tgz
www: all $(HTML) $(XML) $(TEXT)
@@ -83,12 +83,27 @@ mdocml.html: mdocml.1 mdocml.css
install-www: www dist
install -m 0644 mdocml.tgz $(PREFIX)/mdocml-$(VERSION).tgz
install -m 0644 mdocml.tgz $(PREFIX)/mdocml.tgz
+ install -m 0644 mdocml-port.tgz $(PREFIX)/mdocml-port-$(VERSION).tgz
+ install -m 0644 mdocml-port.tgz $(PREFIX)/mdocml-port.tgz
install -m 0644 $(HTML) $(XML) $(TEXT) $(PREFIX)/
mdocml.tgz: $(INSTALL)
mkdir -p .dist/mdocml/mdocml-$(VERSION)/
install -m 0644 $(INSTALL) .dist/mdocml/mdocml-$(VERSION)/
- ( cd .dist/mdocml/ && tar zcf ../../mdocml.tgz mdocml-$(VERSION)/ )
+ ( cd .dist/mdocml/ && tar zcf ../../$@ mdocml-$(VERSION)/ )
+ rm -rf .dist/
+
+mdocml-port.tgz: $(INSTALL)
+ mkdir -p .dist/mdocml/pkg
+ sed -e "s!@VERSION@!$(VERSION)!" Makefile.port > .dist/mdocml/Makefile
+ md5 mdocml-$(VERSION).tgz > .dist/mdocml/distinfo
+ rmd160 mdocml-$(VERSION).tgz >> .dist/mdocml/distinfo
+ sha1 mdocml-$(VERSION).tgz >> .dist/mdocml/distinfo
+ install -m 0644 DESCR .dist/mdocml/pkg/DESCR
+ echo @comment $$OpenBSD$$ > .dist/mdocml/pkg/PLIST
+ echo bin/mdocml >> .dist/mdocml/pkg/PLIST
+ echo @man man/man1/mdocml.1 >> .dist/mdocml/pkg/PLIST
+ ( cd .dist/ && tar zcf ../$@ mdocml/ )
rm -rf .dist/
llib-lmdocml.ln: mdocml.ln libmdocml.ln html.ln xml.ln roff.ln ml.ln mlg.ln compat.ln tokens.ln literals.ln tags.ln