makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. ifdef PO4A
  39. doc: po4a
  40. clean: po4a-clean
  41. .PHONY: update-po po4a
  42. update-po:
  43. po4a --previous --no-backups --force --no-translations po4a.conf
  44. po4a-clean:
  45. po4a --previous --rm-backups --rm-translations po4a.conf
  46. po4a:
  47. po4a --previous --no-backups po4a.conf
  48. endif
  49. ifdef DOXYGEN
  50. DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
  51. clean: doxygen-clean
  52. doxygen-clean:
  53. rm -fr $(BUILD)/doc/doxygen
  54. rm -f $(BUILD)/doc/doxygen-stamp
  55. $(BUILD)/doc/Doxyfile: Doxyfile.in
  56. (cd $(BUILD) && ./config.status doc/Doxyfile)
  57. $(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile
  58. rm -fr $(BUILD)/doc/doxygen
  59. $(DOXYGEN) $(BUILD)/doc/Doxyfile
  60. touch $(BUILD)/doc/doxygen-stamp
  61. doc: $(BUILD)/doc/doxygen-stamp
  62. endif