diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-07 23:08:23 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-07 23:08:23 +0000 |
commit | 9cfd399b48f2cd71976b10351b4c867c08396360 (patch) | |
tree | 2bc812544f75f6e316bf94f2c16e6f5a9cfd9f2b /Makefile | |
parent | d89b4351886e0c796e213dd54eff3b53d868c4b0 (diff) | |
download | mandoc-9cfd399b48f2cd71976b10351b4c867c08396360.tar.gz |
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -1,5 +1,8 @@ .SUFFIXES: .html .7 +VERSION = 1.0.0 + +# FIXME CFLAGS += -W -Wall -Wno-unused-parameter -g -DDEBUG LINTFLAGS += -c -e -f -u @@ -16,9 +19,9 @@ SRCS = mdocml.c html.c xml.c libmdocml.c roff.c ml.c mlg.c compat.c tokens.c lit HEADS = libmdocml.h private.h ml.h roff.h -MANS = mdocml.1 +MANS = mdocml.1 index.7 -HTML = index.html +HTML = index.html mdocml.html CLEAN = mdocml mdocml.tgz $(LLNS) $(LNS) $(OBJS) $(LIBS) $(HTML) @@ -35,7 +38,6 @@ SUCCEED = test.7 test.8 test.9 test.10 test.11 test.12 test.13 \ test.45 test.46 test.47 test.48 test.49 test.51 test.52 \ test.54 test.55 test.56 test.57 test.58 test.59 test.60 - all: mdocml lint: llib-lmdocml.ln @@ -63,10 +65,17 @@ clean: index.html: index.7 mdocml.css ./mdocml -W -fhtml -e -o $@ index.7 +mdocml.html: mdocml.1 mdocml.css + ./mdocml -W -fhtml -e -o $@ mdocml.1 + +install-www: www dist + install -m 0644 mdocml.tgz $(PREFIX)/ + install -m 0644 $(HTML) $(PREFIX)/ + mdocml.tgz: $(INSTALL) - mkdir -p .dist/mdocml/ - install -m 0644 $(INSTALL) .dist/mdocml/ - ( cd .dist/ && tar zcf ../mdocml.tgz mdocml/ ) + mkdir -p .dist/mdocml/mdocml-$(VERSION)/ + install -m 0644 $(INSTALL) .dist/mdocml/mdocml-$(VERSION)/ + ( cd .dist/mdocml/ && tar zcf ../mdocml.tgz mdocml-$(VERSION)/ ) 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 |