diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 45 |
1 files changed, 37 insertions, 8 deletions
@@ -87,24 +87,52 @@ ifdef BB_INIT_SCRIPT | |||
87 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' | 87 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' |
88 | endif | 88 | endif |
89 | 89 | ||
90 | all: busybox busybox.links doc | 90 | all: busybox busybox.links olddoc #doc |
91 | 91 | ||
92 | doc: docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html | ||
93 | 92 | ||
94 | docs/BusyBox.txt: docs/busybox.pod | 93 | # New docs based on DOCBOOK SGML |
94 | doc: docs/BusyBox.txt docs/BusyBox.html docs/BusyBox.pdf | ||
95 | |||
96 | docs/BusyBox.txt: docs/busybox.sgml | ||
97 | @echo | ||
98 | @echo BusyBox Documentation | ||
99 | @echo | ||
100 | (cd docs; sgmltools -b txt busybox.sgml) | ||
101 | |||
102 | docs/BusyBox.dvi: docs/busybox.sgml | ||
103 | (cd docs; sgmltools -b dvi busybox.sgml) | ||
104 | |||
105 | docs/BusyBox.ps: docs/BusyBox.dvi | ||
106 | (cd docs; sgmltools -b ps busybox.sgml) | ||
107 | |||
108 | docs/BusyBox.pdf: docs/BusyBox.ps | ||
109 | (cd docs; ps2pdf busybox.ps) | ||
110 | |||
111 | docs/busybox.lineo.com/BusyBox.html: docs/busybox.sgml | ||
112 | (cd docs/busybox.lineo.com; sgmltools -b html ../busybox.sgml) | ||
113 | |||
114 | docs/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... | ||
120 | olddoc: olddoc/BusyBox.txt olddoc/BusyBox.1 olddoc/BusyBox.html | ||
121 | |||
122 | olddoc/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 | ||
100 | docs/BusyBox.1: docs/busybox.pod | 128 | olddoc/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 | ||
103 | docs/BusyBox.html: docs/busybox.lineo.com/BusyBox.html | 131 | olddoc/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 | ||
107 | docs/busybox.lineo.com/BusyBox.html: docs/busybox.pod | 135 | olddoc/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 | ||
131 | distclean: clean | 160 | distclean: clean |
132 | - rm -f busybox | 161 | - rm -f busybox |