aboutsummaryrefslogtreecommitdiff
path: root/Makefile.custom
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-02 01:10:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-02 01:10:32 +0200
commitacabf8fcb86302e55e01f0a20d5ff9914791416a (patch)
treeb1eff7768689d003f5c72a1ab175b1af52019012 /Makefile.custom
parent3a7034c27b7fa8f3f08e2ace769f165f46afa0e3 (diff)
downloadbusybox-w32-acabf8fcb86302e55e01f0a20d5ff9914791416a.tar.gz
busybox-w32-acabf8fcb86302e55e01f0a20d5ff9914791416a.tar.bz2
busybox-w32-acabf8fcb86302e55e01f0a20d5ff9914791416a.zip
Update documentation generator so that it sucks less
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.custom')
-rw-r--r--Makefile.custom18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile.custom b/Makefile.custom
index d9a2367ab..b0ef05627 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -111,15 +111,19 @@ doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html
111silent_cmd_doc = 111silent_cmd_doc =
112disp_doc = $($(quiet)cmd_doc) 112disp_doc = $($(quiet)cmd_doc)
113 113
114# sed adds newlines after "Options:" etc,
115# this is needed in order to get good BusyBox.{1,txt,html}
114docs/busybox.pod: $(srctree)/docs/busybox_header.pod \ 116docs/busybox.pod: $(srctree)/docs/busybox_header.pod \
115 $(srctree)/include/usage.h \ 117 $(srctree)/include/usage.h \
116 $(srctree)/docs/busybox_footer.pod \ 118 $(srctree)/docs/busybox_footer.pod \
117 $(srctree)/docs/autodocifier.pl 119 applets/usage_pod
118 $(disp_doc) 120 $(disp_doc)
119 $(Q)-mkdir -p docs 121 $(Q)-mkdir -p docs
120 $(Q)-( cat $(srctree)/docs/busybox_header.pod ; \ 122 $(Q)-( \
121 $(srctree)/docs/autodocifier.pl $(srctree)/include/usage.h ; \ 123 cat $(srctree)/docs/busybox_header.pod; \
122 cat $(srctree)/docs/busybox_footer.pod ; ) > docs/busybox.pod 124 applets/usage_pod | sed 's/^[A-Za-z][A-Za-z ]*[a-z]:$$/&\n/'; \
125 cat $(srctree)/docs/busybox_footer.pod; \
126 ) > docs/busybox.pod
123 127
124docs/BusyBox.txt: docs/busybox.pod 128docs/BusyBox.txt: docs/busybox.pod
125 $(disp_doc) 129 $(disp_doc)
@@ -129,8 +133,7 @@ docs/BusyBox.txt: docs/busybox.pod
129docs/BusyBox.1: docs/busybox.pod 133docs/BusyBox.1: docs/busybox.pod
130 $(disp_doc) 134 $(disp_doc)
131 $(Q)-mkdir -p docs 135 $(Q)-mkdir -p docs
132 $(Q)-pod2man --center=BusyBox --release="version $(VERSION)" \ 136 $(Q)-pod2man --center=BusyBox --release="version $(VERSION)" $< > $@
133 $< > $@
134 137
135docs/BusyBox.html: docs/busybox.net/BusyBox.html 138docs/BusyBox.html: docs/busybox.net/BusyBox.html
136 $(disp_doc) 139 $(disp_doc)
@@ -140,8 +143,7 @@ docs/BusyBox.html: docs/busybox.net/BusyBox.html
140 143
141docs/busybox.net/BusyBox.html: docs/busybox.pod 144docs/busybox.net/BusyBox.html: docs/busybox.pod
142 $(Q)-mkdir -p docs/busybox.net 145 $(Q)-mkdir -p docs/busybox.net
143 $(Q)-pod2html --noindex $< > \ 146 $(Q)-pod2html --noindex $< > $@
144 docs/busybox.net/BusyBox.html
145 $(Q)-rm -f pod2htm* 147 $(Q)-rm -f pod2htm*
146 148
147# documentation, cross-reference 149# documentation, cross-reference