docs.patch 986 B

1234567891011121314151617181920212223242526272829303132
  1. --- a/doc/Makefile 2007-11-27 02:57:27.000000000 +0200
  2. +++ b/doc/Makefile 2007-11-27 04:55:23.000000000 +0200
  3. @@ -13,25 +13,17 @@
  4. # So, scope it to a temporary dir and clean all after each run.
  5. $(HTMLFILES): index.db
  6. - @-rm -rf tmp.db2html
  7. - @mkdir tmp.db2html
  8. - @set -e; cd tmp.db2html; docbook2html ../$< ; mv *.html ..
  9. - @-rm -rf tmp.db2html
  10. + @docbook2html $<
  11. iputils.html: iputils.db
  12. - @-rm -rf tmp.db2html
  13. - @mkdir tmp.db2html
  14. - @set -e; cd tmp.db2html; docbook2html -u -o html ../$< ; mv html/$@ ..
  15. - @-rm -rf tmp.db2html
  16. + @docbook2html -u $<
  17. # docbook2man produces utterly ugly output and I did not find
  18. # any way to customize this but hacking backend perl script a little.
  19. # Well, hence...
  20. $(MANFILES): index.db
  21. - @-mkdir tmp.db2man
  22. - @set -e; cd tmp.db2man; nsgmls ../$< | sgmlspl ../docbook2man-spec.pl ; mv $@ ..
  23. - @-rm -rf tmp.db2man
  24. + @nsgmls $< |sgmlspl docbook2man-spec.pl
  25. clean:
  26. @rm -rf $(MANFILES) $(HTMLFILES) iputils.html tmp.db2html tmp.db2man