about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-18 14:57:18 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-18 15:00:59 -0700
commit3bdcb9c6b1852448d3b47fbb46cf6c65b3227477 (patch)
tree7577f96a5c3f919707e1a57807652511241cad43 /GNUmakefile
parentf1e3d4a3828c377ef19f1f3d754457221c200bc4 (diff)
downloadunicorn-3bdcb9c6b1852448d3b47fbb46cf6c65b3227477.tar.gz
$(wildcard) is evaluated as soon as the target command
is called, resulting in the manpages not being globbed
since we just generated them.  Also, bundle manpages
with documentation.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f4e0fca..48ab798 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -132,9 +132,10 @@ clean:
 man:
         $(MAKE) -C Documentation install-man
 .manifest: GIT-VERSION-FILE NEWS ChangeLog $(ext)/unicorn_http.c
+        $(RM) -r man
         $(MAKE) man
         (git ls-files && \
-         for i in $@ $^ $(wildcard man/*/*.1); \
+         for i in $@ $^ man/man1/*.1; \
          do echo $$i; done) | LC_ALL=C sort > $@+
         cmp $@+ $@ || mv $@+ $@
         $(RM) $@+
@@ -159,7 +160,8 @@ doc: .document $(ext)/unicorn_http.c NEWS ChangeLog
         > unicorn.1 && > unicorn_rails.1
         rdoc -Na -t "$(shell sed -ne '1s/^= //p' README)"
         install -m644 $(shell grep '^[A-Z]' .document)  doc/
-        $(MAKE) -C Documentation install-html
+        $(MAKE) -C Documentation install-html install-man
+        install -m644 man/man1/*.1 doc/
         cd doc && for i in unicorn unicorn_rails; do \
           sed -e '/"documentation">/r man1/'$$i'.1.html' \
                 < $${i}_1.html > tmp && mv tmp $${i}_1.html; done