aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 37 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 16573ea89..f1153830b 100644
--- a/Makefile
+++ b/Makefile
@@ -87,24 +87,52 @@ ifdef BB_INIT_SCRIPT
87 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' 87 CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
88endif 88endif
89 89
90all: busybox busybox.links doc 90all: busybox busybox.links olddoc #doc
91 91
92doc: docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html
93 92
94docs/BusyBox.txt: docs/busybox.pod 93# New docs based on DOCBOOK SGML
94doc: docs/BusyBox.txt docs/BusyBox.html docs/BusyBox.pdf
95
96docs/BusyBox.txt: docs/busybox.sgml
97 @echo
98 @echo BusyBox Documentation
99 @echo
100 (cd docs; sgmltools -b txt busybox.sgml)
101
102docs/BusyBox.dvi: docs/busybox.sgml
103 (cd docs; sgmltools -b dvi busybox.sgml)
104
105docs/BusyBox.ps: docs/BusyBox.dvi
106 (cd docs; sgmltools -b ps busybox.sgml)
107
108docs/BusyBox.pdf: docs/BusyBox.ps
109 (cd docs; ps2pdf busybox.ps)
110
111docs/busybox.lineo.com/BusyBox.html: docs/busybox.sgml
112 (cd docs/busybox.lineo.com; sgmltools -b html ../busybox.sgml)
113
114docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html
115 - rm -f docs/BusyBox.html
116 - ln -s busybox.lineo.com/BusyBox.html docs/BusyBox.html
117
118
119# Old Docs...
120olddoc: olddoc/BusyBox.txt olddoc/BusyBox.1 olddoc/BusyBox.html
121
122olddoc/BusyBox.txt: docs/busybox.pod
95 @echo 123 @echo
96 @echo BusyBox Documentation 124 @echo BusyBox Documentation
97 @echo 125 @echo
98 - pod2text docs/busybox.pod > docs/BusyBox.txt 126 - pod2text docs/busybox.pod > docs/BusyBox.txt
99 127
100docs/BusyBox.1: docs/busybox.pod 128olddoc/BusyBox.1: docs/busybox.pod
101 - pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > docs/BusyBox.1 129 - pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > docs/BusyBox.1
102 130
103docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html 131olddoc/BusyBox.html: olddoc/busybox.lineo.com/BusyBox.html
104 - rm -f docs/BusyBox.html 132 - rm -f docs/BusyBox.html
105 - ln -s busybox.lineo.com/BusyBox.html docs/BusyBox.html 133 - ln -s busybox.lineo.com/BusyBox.html docs/BusyBox.html
106 134
107docs/busybox.lineo.com/BusyBox.html: docs/busybox.pod 135olddoc/busybox.lineo.com/BusyBox.html: docs/busybox.pod
108 - pod2html docs/busybox.pod > docs/busybox.lineo.com/BusyBox.html 136 - pod2html docs/busybox.pod > docs/busybox.lineo.com/BusyBox.html
109 - rm -f pod2html* 137 - rm -f pod2html*
110 138
@@ -125,8 +153,9 @@ clean:
125 - rm -f busybox.links *~ *.o core 153 - rm -f busybox.links *~ *.o core
126 - rm -rf _install 154 - rm -rf _install
127 - cd tests && $(MAKE) clean 155 - cd tests && $(MAKE) clean
128 - rm -f docs/BusyBox.html docs/busybox.lineo.com/BusyBox.html \ 156 - rm -f docs/busybox.txt docs/busybox.dvi docs/busybox.ps \
129 docs/BusyBox.1 docs/BusyBox.txt pod2html* 157 docs/busybox.pdf docs/busybox.lineo.com/busybox.html
158 - rm -rf docs/busybox
130 159
131distclean: clean 160distclean: clean
132 - rm -f busybox 161 - rm -f busybox