diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-17 19:25:54 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-17 19:25:54 -0700 |
commit | bdbd96ab70a2702a7d26e6638e096b2f64346853 (patch) | |
tree | f78c78e37d8aef5eae5f59438ad041d07a044d61 /Documentation/GNUmakefile | |
parent | 032a79dbf1fb89bbf090f03af199b80d5ff1175d (diff) | |
download | unicorn-bdbd96ab70a2702a7d26e6638e096b2f64346853.tar.gz |
setup.rb users will now be able to install manpages under man/man1 automatically, no solution for Rubygems users yet. gzipped manpages are no longer created by default, either, it's probably up to distros to do it.
Diffstat (limited to 'Documentation/GNUmakefile')
-rw-r--r-- | Documentation/GNUmakefile | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 6caa47f..82cc88d 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -4,31 +4,27 @@ PANDOC = pandoc PANDOC_OPTS = -s -f markdown --email-obfuscation=none --sanitize-html pandoc = $(PANDOC) $(PANDOC_OPTS) pandoc_html = $(pandoc) --toc -t html --no-wrap -gzip = gzip -man1 := unicorn unicorn_rails +man1 := $(addsuffix .1,unicorn unicorn_rails) +html1 := $(addsuffix .html,$(man1)) all:: html man -doc-gz: man-gz html-gz -html: $(addsuffix .1.html,$(man1)) -man: $(addsuffix .1,$(man1)) -html-gz: $(addsuffix .1.html.gz,$(man1)) -man-gz: $(addsuffix .1.gz,$(man1)) +html: $(html1) +man: $(man1) + +install-html: html + mkdir -p ../doc/man1 + install -m 644 $(html1) ../doc/man1 + +install-man: man + mkdir -p ../man/man1 + install -m 644 $(man1) ../man/man1 %.1: %.1.txt $(pandoc) -t man < $< > $@+ && mv $@+ $@ %.1.html: %.1.txt $(pandoc_html) -T $(basename $@) < $< > $@+ && mv $@+ $@ -%.1.gz: %.1 - $(gzip) < $< > $@+ && mv $@+ $@ - -%.1.html.gz: %.1.html - $(gzip) < $< > $@+ && mv $@+ $@ - clean:: - $(RM) $(addsuffix .1.html,$(man1)) - $(RM) $(addsuffix .1,$(man1)) - $(RM) $(addsuffix .1.html.gz,$(man1)) - $(RM) $(addsuffix .1.gz,$(man1)) + $(RM) $(man1) $(html1) |