@@ -121,8 +121,6 @@ modules_names=$(patsubst modules/%, %.so, $(modules))
121
121
modules_basenames =$(patsubst modules/% , % , $(modules ) )
122
122
modules_full_path =$(join $(modules ) , $(addprefix /, $(modules_names ) ) )
123
123
124
- doc_modules_basenames =$(patsubst modules/% , % , $(patsubst net/% , % , $(doc_modules ) ) )
125
-
126
124
ALLDEP =Makefile Makefile.sources Makefile.defs Makefile.rules Makefile.conf
127
125
128
126
@@ -239,18 +237,14 @@ tool-xsltproc:
239
237
.PHONY : modules-readme
240
238
modules-readme : tool-lynx tool-xsltproc
241
239
@set -e; \
242
- for r in $( doc_modules_basenames) " " ; do \
243
- if [ ! -d " modules/$$ r/doc" -a ! -d " net/$$ r/doc" ]; then \
240
+ for mod in $( doc_modules) ; do \
241
+ r=` basename $$ mod` ; \
242
+ echo " Reading directory $$ mod for module $$ r" ; \
243
+ if [ ! -d " $$ mod/doc" ]; then \
244
244
continue ; \
245
245
fi ; \
246
- if [ -d " modules/$$ r/doc" ]; then \
247
- cd " modules/$$ r/doc" ; \
248
- elif [ -d " net/$$ r/doc" ]; then \
249
- cd " net/$$ r/doc" ; \
250
- fi ; \
251
- \
246
+ cd " $$ mod/doc" ; \
252
247
if [ -f " $$ r" .xml ]; then \
253
- echo " " ; \
254
248
echo " docbook xml to html: $$ r.xml" ; \
255
249
$(DBXML2HTML ) -o $$ r.html $(DBXML2HTMLPARAMS ) $(DBHTMLXSL ) \
256
250
$$ r.xml; \
@@ -267,16 +261,13 @@ modules-readme: tool-lynx tool-xsltproc
267
261
.PHONY : modules-docbook-txt
268
262
modules-docbook-txt : tool-lynx tool-xsltproc
269
263
@set -e; \
270
- for r in $( doc_modules_basenames) " " ; do \
271
- if [ ! -d " modules/$$ r/doc" -a ! -d " net/$$ r/doc" ]; then \
264
+ for mod in $( doc_modules) ; do \
265
+ r=` basename $$ mod` ; \
266
+ echo " Reading directory $$ mod for module $$ r" ; \
267
+ if [ ! -d " $$ mod/doc" ]; then \
272
268
continue ; \
273
269
fi ; \
274
- if [ -d " modules/$$ r/doc" ]; then \
275
- cd " modules/$$ r/doc" ; \
276
- elif [ -d " net/$$ r/doc" ]; then \
277
- cd " net/$$ r/doc" ; \
278
- fi ; \
279
- \
270
+ cd " $$ mod/doc" ; \
280
271
if [ -f " $$ r" .xml ]; then \
281
272
echo " " ; \
282
273
echo " docbook xml to html: $$ r.xml" ; \
@@ -293,16 +284,13 @@ modules-docbook-txt: tool-lynx tool-xsltproc
293
284
.PHONY : modules-docbook-html
294
285
modules-docbook-html : tool-xsltproc
295
286
@set -e; \
296
- for r in $( doc_modules_basenames) " " ; do \
297
- if [ ! -d " modules/$$ r/doc" -a ! -d " net/$$ r/doc" ]; then \
287
+ for mod in $( doc_modules) ; do \
288
+ r=` basename $$ mod` ; \
289
+ echo " Reading directory $$ mod for module $$ r" ; \
290
+ if [ ! -d " $$ mod/doc" ]; then \
298
291
continue ; \
299
292
fi ; \
300
- if [ -d " modules/$$ r/doc" ]; then \
301
- cd " modules/$$ r/doc" ; \
302
- elif [ -d " net/$$ r/doc" ]; then \
303
- cd " net/$$ r/doc" ; \
304
- fi ; \
305
- \
293
+ cd " $$ mod/doc" ; \
306
294
if [ -f " $$ r" .xml ]; then \
307
295
echo " " ; \
308
296
echo " docbook xml to html: $$ r.xml" ; \
@@ -316,15 +304,13 @@ modules-docbook-html: tool-xsltproc
316
304
.PHONY : modules-docbook-pdf
317
305
modules-docbook-pdf : tool-docbook2pdf
318
306
@set -e; \
319
- for r in $( doc_modules_basenames) " " ; do \
320
- if [ ! -d " modules/$$ r/doc" -a ! -d " net/$$ r/doc" ]; then \
307
+ for mod in $( doc_modules) ; do \
308
+ r=` basename $$ mod` ; \
309
+ echo " Reading directory $$ mod for module $$ r" ; \
310
+ if [ ! -d " $$ mod/doc" ]; then \
321
311
continue ; \
322
312
fi ; \
323
- if [ -d " modules/$$ r/doc" ]; then \
324
- cd " modules/$$ r/doc" ; \
325
- elif [ -d " net/$$ r/doc" ]; then \
326
- cd " net/$$ r/doc" ; \
327
- fi ; \
313
+ cd " $$ mod/doc" ; \
328
314
if [ -f " $$ r" .xml ]; then \
329
315
echo " " ; \
330
316
echo " docbook xml to pdf: $$ r.xml" ; \
0 commit comments