@@ -101,14 +101,6 @@ static_defs=$(foreach mod, $(static_modules), \
101101override extra_defs+ =$(static_defs ) $(EXTRA_DEFS )
102102export extra_defs
103103
104- # If modules is supplied, only do those. If not, use all modules when
105- # building documentation.
106- ifeq ($(modules ) ,)
107- doc_modules=$(all_modules)
108- else
109- doc_modules=$(modules)
110- endif
111-
112104# Take subset of all modules, excluding the exclude_modules and the
113105# static_modules.
114106modules =$(filter-out $(addprefix modules/, \
@@ -238,125 +230,12 @@ gen_misclibs:
238230 $(MAKE ) -C $$ r ; \
239231 done
240232
241- .PHONY : tool-docbook2pdf
242- tool-docbook2pdf :
243- @if [ -z " $( DBXML2PDF) " ]; then \
244- echo " error: docbook2pdf not found" ; exit 1; \
245- fi
246-
247- .PHONY : tool-lynx
248- tool-lynx :
249- @if [ -z " $( DBHTML2TXT) " ]; then \
250- echo " error: lynx not found" ; exit 1; \
251- fi
252-
253- .PHONY : tool-xsltproc
254- tool-xsltproc :
255- @if [ -z " $( DBXML2HTML) " ]; then \
256- echo " error: xsltproc not found" ; exit 1; \
257- fi
258- @if [ -z " $( DBHTMLXSL) " ]; then \
259- echo " error: docbook.xsl not found (docbook-xsl)" ; exit 1; \
260- fi
261-
262233.PHONY : git-dir
263234git-dir :
264235 @if [ ! -r .git ]; then \
265236 echo " error: Not a git repo! (.git dir not found)" ; exit 1; \
266237 fi
267238
268- .PHONY : modules-contrib
269- modules-contrib : git-dir
270- @set -e; ./docs/build-contrib.sh $(modules )
271-
272- .PHONY : modules-readme
273- modules-readme : tool-lynx tool-xsltproc
274- @set -e; \
275- for mod in $( doc_modules) ; do \
276- r=` basename $$ mod` ; \
277- echo " Reading directory $$ mod for module $$ r" ; \
278- if [ ! -d " $$ mod/doc" ]; then \
279- continue ; \
280- fi ; \
281- cd " $$ mod/doc" ; \
282- if [ -f " $$ r" .xml ]; then \
283- echo " docbook xml to html: $$ r.xml" ; \
284- $(DBXML2HTML ) -o $$ r.html $(DBXML2HTMLPARAMS ) $(DBHTMLXSL ) \
285- $$ r.xml; \
286- echo " docbook html to txt: $$ r.html" ; \
287- $(DBHTML2TXT ) $(DBHTML2TXTPARAMS ) $$ r.html > $$ r.txt; \
288- echo " docbook txt to readme: $$ r.txt" ; \
289- rm $$ r.html; \
290- mv $$ r.txt ../README; \
291- echo " " ; \
292- fi ; \
293- cd ../../..; \
294- done
295-
296- .PHONY : modules-docbook-txt
297- modules-docbook-txt : tool-lynx tool-xsltproc
298- @set -e; \
299- for mod in $( doc_modules) ; do \
300- r=` basename $$ mod` ; \
301- echo " Reading directory $$ mod for module $$ r" ; \
302- if [ ! -d " $$ mod/doc" ]; then \
303- continue ; \
304- fi ; \
305- cd " $$ mod/doc" ; \
306- if [ -f " $$ r" .xml ]; then \
307- echo " " ; \
308- echo " docbook xml to html: $$ r.xml" ; \
309- $(DBXML2HTML ) -o $$ r.html $(DBXML2HTMLPARAMS ) $(DBHTMLXSL ) \
310- $$ r.xml; \
311- echo " docbook html to txt: $$ r.html" ; \
312- $(DBHTML2TXT ) $(DBHTML2TXTPARAMS ) $$ r.html > $$ r.txt; \
313- rm $$ r.html; \
314- echo " " ; \
315- fi ; \
316- cd ../../..; \
317- done
318-
319- .PHONY : modules-docbook-html
320- modules-docbook-html : tool-xsltproc
321- @set -e; \
322- for mod in $( doc_modules) ; do \
323- r=` basename $$ mod` ; \
324- echo " Reading directory $$ mod for module $$ r" ; \
325- if [ ! -d " $$ mod/doc" ]; then \
326- continue ; \
327- fi ; \
328- cd " $$ mod/doc" ; \
329- if [ -f " $$ r" .xml ]; then \
330- echo " " ; \
331- echo " docbook xml to html: $$ r.xml" ; \
332- $(DBXML2HTML ) -o $$ r.html $(DBXML2HTMLPARAMS ) $(DBHTMLXSL ) \
333- $$ r.xml; \
334- echo " " ; \
335- fi ; \
336- cd ../../..; \
337- done
338-
339- .PHONY : modules-docbook-pdf
340- modules-docbook-pdf : tool-docbook2pdf
341- @set -e; \
342- for mod in $( doc_modules) ; do \
343- r=` basename $$ mod` ; \
344- echo " Reading directory $$ mod for module $$ r" ; \
345- if [ ! -d " $$ mod/doc" ]; then \
346- continue ; \
347- fi ; \
348- cd " $$ mod/doc" ; \
349- if [ -f " $$ r" .xml ]; then \
350- echo " " ; \
351- echo " docbook xml to pdf: $$ r.xml" ; \
352- $(DBXML2PDF ) " $$ r" .xml; \
353- fi ; \
354- cd ../../..; \
355- done
356-
357- .PHONY : modules-docbook
358- modules-docbook : modules-docbook-txt modules-docbook-html modules-docbook-pdf
359-
360239.PHONY : dbschema-docbook-txt
361240dbschema-docbook-txt : dbschema
362241 @set -e; \
@@ -490,11 +369,11 @@ sunpkg:
490369install-app : mk-install-dirs install-cfg install-bin \
491370 install-app-doc install-man install-config-templates
492371
493- # Install all module stuff (except modules-docbook?)
372+ # Install all module stuff
494373install-modules-files : install-modules install-modules-doc
495374install-modules-all : install-modules-files install-modules-dbschema
496375
497- # Install everything (except modules-docbook?)
376+ # Install everything
498377install : install-app install-modules-all
499378
500379install-config-templates : $(data_prefix ) /$(data_dir )
@@ -587,9 +466,9 @@ install-app-doc: $(doc_prefix)/$(doc_dir)
587466install-modules-doc : $(doc_prefix ) /$(doc_dir )
588467 -@for r in $(modules_basenames ) " " ; do \
589468 if [ -n " $$ r" ]; then \
590- if [ -f modules/" $$ r" /README ]; then \
469+ if [ -f modules/" $$ r" /README.md ]; then \
591470 $(INSTALL_TOUCH ) $(doc_prefix ) /$(doc_dir ) /README." $$ r" ; \
592- $(INSTALL_DOC ) modules/" $$ r" /README \
471+ $(INSTALL_DOC ) modules/" $$ r" /README.md \
593472 $(doc_prefix ) /$(doc_dir ) /README." $$ r" ; \
594473 fi ; \
595474 fi ; \
@@ -610,29 +489,6 @@ install-man: $(man_prefix)/$(man_dir)/man8 $(man_prefix)/$(man_dir)/man5
610489 < $(NAME ) .cfg.5 > $(man_prefix ) /$(man_dir ) /man5/$(NAME ) .cfg.5
611490 chmod 644 $(man_prefix ) /$(man_dir ) /man5/$(NAME ) .cfg.5
612491
613- install-modules-docbook : $(doc_prefix ) /$(doc_dir )
614- -@for r in $(modules_basenames ) " " ; do \
615- if [ -n " $$ r" ]; then \
616- if [ -d modules/" $$ r" /doc ]; then \
617- if [ -f modules/" $$ r" /doc/" $$ r" .txt ]; then \
618- $(INSTALL_TOUCH ) $(doc_prefix ) /$(doc_dir ) /" $$ r" .txt ; \
619- $(INSTALL_DOC ) modules/" $$ r" /doc/" $$ r" .txt \
620- $(doc_prefix ) /$(doc_dir ) /" $$ r" .txt ; \
621- fi ; \
622- if [ -f modules/" $$ r" /doc/" $$ r" .html ]; then \
623- $(INSTALL_TOUCH ) $(doc_prefix ) /$(doc_dir ) /" $$ r" .html ; \
624- $(INSTALL_DOC ) modules/" $$ r" /doc/" $$ r" .html \
625- $(doc_prefix ) /$(doc_dir ) /" $$ r" .html ; \
626- fi ; \
627- if [ -f modules/" $$ r" /doc/" $$ r" .pdf ]; then \
628- $(INSTALL_TOUCH ) $(doc_prefix ) /$(doc_dir ) /" $$ r" .pdf ; \
629- $(INSTALL_DOC ) modules/" $$ r" /doc/" $$ r" .pdf \
630- $(doc_prefix ) /$(doc_dir ) /" $$ r" .pdf ; \
631- fi ; \
632- fi ; \
633- fi ; \
634- done
635-
636492doxygen :
637493 -@echo " Create Doxygen documentation"
638494 # disable call graphes, because of the DOT dependencies
0 commit comments