about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-26 16:56:10 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-26 16:57:46 -0700
commit83d2170442144a1b2f623b32a1291befaf59c968 (patch)
tree49edd27d22e7a723d9b1f2110b33318f0aedb801 /GNUmakefile
parent4bef5b2d0bf9cdad88a47a32b751f834877e4802 (diff)
downloadunicorn-83d2170442144a1b2f623b32a1291befaf59c968.tar.gz
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 67d9fb7..2136adc 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -187,10 +187,11 @@ doc: .document $(ext)/unicorn_http.c NEWS ChangeLog
         $(MAKE) -C Documentation install-html install-man
         install -m644 $(man1_paths) doc/
         cd doc && for i in $(base_bins); do \
-          $(RM) $${i}.1.html; \
-          ln $${i}_1.html $${i}.1.html; \
+          $(RM) 1.html $${i}.1.html; \
           sed -e '/"documentation">/r man1/'$$i'.1.html' \
-                < $${i}.1.html > tmp && mv tmp $${i}_1.html; done
+                < $${i}_1.html > tmp && mv tmp $${i}_1.html; \
+          ln $${i}_1.html $${i}.1.html; \
+          done
         $(RUBY) -i -p -e \
           '$$_.gsub!("</title>",%q{\&$(call atom,$(cgit_atom))})' \
           doc/ChangeLog.html