summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-07 21:30:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-07 21:30:49 +0000
commitcbf4b23303e5c63578526fbe6fa0a5d8eb493fba (patch)
tree90b5d66bb889bc989e5ae7d725256fefe9316fd5 /Makefile
parent8fd8d3e8c36a0ca787a81071a2847668e8e91619 (diff)
downloadmandoc-cbf4b23303e5c63578526fbe6fa0a5d8eb493fba.tar.gz
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b9bdef4c..e8021900 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+.SUFFIXES: .html .7
+
CFLAGS += -W -Wall -Wno-unused-parameter -g -DDEBUG
LINTFLAGS += -c -e -f -u
@@ -16,7 +18,9 @@ HEADS = libmdocml.h private.h ml.h roff.h
MANS = mdocml.1
-CLEAN = mdocml mdocml.tgz $(LLNS) $(LNS) $(OBJS) $(LIBS)
+HTML = index.html
+
+CLEAN = mdocml mdocml.tgz $(LLNS) $(LNS) $(OBJS) $(LIBS) $(HTML)
INSTALL = Makefile $(HEADS) $(SRCS) $(MANS)
@@ -37,6 +41,8 @@ lint: llib-lmdocml.ln
dist: mdocml.tgz
+www: $(HTML)
+
regress: mdocml
@for f in $(FAIL); do \
echo "./mdocml $$f" ; \
@@ -53,6 +59,9 @@ mdocml: mdocml.o libmdocml.a
clean:
rm -f $(CLEAN)
+index.html: index.7 mdocml.css
+ ./mdocml -W -fhtml -e -o $@ $<
+
mdocml.tgz: $(INSTALL)
mkdir -p .dist/mdocml/
install -m 0644 $(INSTALL) .dist/mdocml/