aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
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/