aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-06 22:53:22 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-06 22:53:22 +0000
commit67536ffa437a54504f18492244df4e03ce636e7f (patch)
tree82cb8e6db430fefae88e6d114ac848d146e65412
parent8845adc545e4398d7ba03c1f286775ad37cdbd77 (diff)
downloadbusybox-w32-67536ffa437a54504f18492244df4e03ce636e7f.tar.gz
busybox-w32-67536ffa437a54504f18492244df4e03ce636e7f.tar.bz2
busybox-w32-67536ffa437a54504f18492244df4e03ce636e7f.zip
Fix doc building so the dependancies work properly.
-Erik
-rw-r--r--Makefile57
1 files changed, 29 insertions, 28 deletions
diff --git a/Makefile b/Makefile
index ff2f8f88f..e24193c3a 100644
--- a/Makefile
+++ b/Makefile
@@ -88,54 +88,53 @@ ifdef BB_INIT_SCRIPT
88 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' 88 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
89endif 89endif
90 90
91all: busybox busybox.links olddoc #doc 91all: busybox busybox.links doc
92 92
93doc: olddoc
93 94
94# New docs based on DOCBOOK SGML 95# Old Docs...
95doc: docs/BusyBox.txt docs/BusyBox.html docs/BusyBox.pdf 96olddoc: docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html
96 97
97docs/BusyBox.txt: docs/busybox.sgml 98docs/BusyBox.txt: docs/busybox.pod
98 @echo 99 @echo
99 @echo BusyBox Documentation 100 @echo BusyBox Documentation
100 @echo 101 @echo
101 (cd docs; sgmltools -b txt busybox.sgml) 102 - pod2text docs/busybox.pod > docs/BusyBox.txt
102
103docs/BusyBox.dvi: docs/busybox.sgml
104 (cd docs; sgmltools -b dvi busybox.sgml)
105
106docs/BusyBox.ps: docs/BusyBox.dvi
107 (cd docs; sgmltools -b ps busybox.sgml)
108
109docs/BusyBox.pdf: docs/BusyBox.ps
110 (cd docs; ps2pdf busybox.ps)
111 103
112docs/busybox.lineo.com/BusyBox.html: docs/busybox.sgml 104docs/BusyBox.1: docs/busybox.pod
113 (cd docs/busybox.lineo.com; sgmltools -b html ../busybox.sgml) 105 - pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > docs/BusyBox.1
114 106
115docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html 107docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html
116 - rm -f docs/BusyBox.html 108 - rm -f docs/BusyBox.html
117 - ln -s busybox.lineo.com/BusyBox.html docs/BusyBox.html 109 - ln -s busybox.lineo.com/BusyBox.html docs/BusyBox.html
118 110
111docs/busybox.lineo.com/BusyBox.html: docs/busybox.pod
112 - pod2html --noindex docs/busybox.pod > docs/busybox.lineo.com/BusyBox.html
113 - rm -f pod2html*
119 114
120# Old Docs...
121olddoc: olddoc/BusyBox.txt olddoc/BusyBox.1 olddoc/BusyBox.html
122 115
123olddoc/BusyBox.txt: docs/busybox.pod 116# New docs based on DOCBOOK SGML
117newdoc: docs/busybox.txt docs/busybox.pdf docs/busybox/busybox.html
118
119docs/busybox.txt: docs/busybox.sgml
124 @echo 120 @echo
125 @echo BusyBox Documentation 121 @echo BusyBox Documentation
126 @echo 122 @echo
127 - pod2text docs/busybox.pod > docs/BusyBox.txt 123 (cd docs; sgmltools -b txt busybox.sgml)
128 124
129olddoc/BusyBox.1: docs/busybox.pod 125docs/busybox.dvi: docs/busybox.sgml
130 - pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > docs/BusyBox.1 126 (cd docs; sgmltools -b dvi busybox.sgml)
127
128docs/busybox.ps: docs/BusyBox.dvi
129 (cd docs; sgmltools -b ps busybox.sgml)
130
131docs/busybox.pdf: docs/BusyBox.ps
132 (cd docs; ps2pdf busybox.ps)
133
134docs/busybox/busybox.html: docs/busybox.sgml
135 (cd docs/busybox.lineo.com; sgmltools -b html ../busybox.sgml)
131 136
132olddoc/BusyBox.html: olddoc/busybox.lineo.com/BusyBox.html
133 - rm -f docs/BusyBox.html
134 - ln -s busybox.lineo.com/BusyBox.html docs/BusyBox.html
135 137
136olddoc/busybox.lineo.com/BusyBox.html: docs/busybox.pod
137 - pod2html --noindex docs/busybox.pod > docs/busybox.lineo.com/BusyBox.html
138 - rm -f pod2html*
139 138
140busybox: $(OBJECTS) 139busybox: $(OBJECTS)
141 $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) 140 $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
@@ -154,6 +153,8 @@ clean:
154 - rm -f busybox.links *~ *.o core 153 - rm -f busybox.links *~ *.o core
155 - rm -rf _install 154 - rm -rf _install
156 - cd tests && $(MAKE) clean 155 - cd tests && $(MAKE) clean
156 - rm -f docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
157 docs/busybox.lineo.com/BusyBox.html
157 - rm -f docs/busybox.txt docs/busybox.dvi docs/busybox.ps \ 158 - rm -f docs/busybox.txt docs/busybox.dvi docs/busybox.ps \
158 docs/busybox.pdf docs/busybox.lineo.com/busybox.html 159 docs/busybox.pdf docs/busybox.lineo.com/busybox.html
159 - rm -rf docs/busybox 160 - rm -rf docs/busybox