makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=doc
  4. SUBDIRS= $(dir $(wildcard */makefile))
  5. # Bring in the default rules
  6. include ../buildlib/defaults.mak
  7. # Debian Doc SGML Documents
  8. SOURCE = $(wildcard *.sgml)
  9. DEBIANDOC_HTML_OPTIONS=-l en
  10. include $(DEBIANDOC_H)
  11. # XML man pages
  12. SOURCE = apt-cache.8 apt-get.8 apt-cdrom.8 apt.conf.5 sources.list.5 \
  13. apt-config.8 apt_preferences.5 \
  14. apt-sortpkgs.1 apt-ftparchive.1 apt-extracttemplates.1 \
  15. apt-key.8 apt-secure.8 apt-mark.8
  16. INCLUDES = apt.ent
  17. include $(XML_MANPAGE_H)
  18. # Examples
  19. SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf
  20. TO = $(DOC)
  21. TARGET = binary
  22. include $(COPY_H)
  23. #.PHONY: headers library clean veryclean all binary program doc doc.pt_BR doc.fr
  24. doc:
  25. for dir in $(SUBDIRS); do\
  26. $(MAKE) -C $$dir $@; \
  27. done
  28. clean: clean-subdirs
  29. veryclean: veryclean-subdirs
  30. clean-subdirs:
  31. for dir in $(SUBDIRS); do\
  32. $(MAKE) -C $$dir clean; \
  33. done
  34. veryclean-subdirs:
  35. for dir in $(SUBDIRS); do\
  36. $(MAKE) -C $$dir veryclean; \
  37. done
  38. # FIXME remove created sgml files, but preserve all
  39. # which are "left over" from older systems.
  40. # After completing the transition this should be handled
  41. # in the po4a-manpage makefile for all translations
  42. for dir in $(subst /addendum/,, $(dir $(wildcard */addendum/debiandoc*))); do\
  43. rm -f $$dir/offline.$$dir.sgml; \
  44. rm -f $$dir/guide.$$dir.sgml; \
  45. done
  46. ifdef PO4A
  47. doc: po4a
  48. clean: po4a-clean
  49. .PHONY: update-po po4a
  50. update-po:
  51. po4a --previous --no-backups --force --no-translations po4a.conf
  52. po4a-clean:
  53. po4a --previous --rm-backups --rm-translations po4a.conf
  54. po4a:
  55. po4a --previous --no-backups po4a.conf
  56. endif
  57. ifdef DOXYGEN
  58. DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
  59. clean: doxygen-clean
  60. doxygen-clean:
  61. rm -fr $(BUILD)/doc/doxygen
  62. rm -f $(BUILD)/doc/doxygen-stamp
  63. $(BUILD)/doc/Doxyfile: Doxyfile.in
  64. (cd $(BUILD) && ./config.status doc/Doxyfile)
  65. $(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile
  66. rm -fr $(BUILD)/doc/doxygen
  67. $(DOXYGEN) $(BUILD)/doc/Doxyfile
  68. touch $(BUILD)/doc/doxygen-stamp
  69. doc: $(BUILD)/doc/doxygen-stamp
  70. endif