makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # -*- make -*-
  2. BASE=..
  3. SUBDIR=doc
  4. SUBDIRS= fr ja pl pt_BR es
  5. # Bring in the default rules
  6. include ../buildlib/defaults.mak
  7. # Debian Doc SGML Documents
  8. SOURCE = dpkg-tech.sgml design.sgml files.sgml guide.sgml guide.it.sgml \
  9. cache.sgml method.sgml offline.sgml
  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: po4a
  25. for dir in $(SUBDIRS); do\
  26. $(MAKE) -C $$dir $@; \
  27. done
  28. .PHONY: update-po po4a
  29. update-po:
  30. po4a --previous --no-backups --force --no-translations po4a.conf
  31. clean: po4a-clean clean-subdirs
  32. clean-subdirs:
  33. for dir in $(SUBDIRS); do\
  34. $(MAKE) -C $$dir $@; \
  35. done
  36. po4a-clean:
  37. po4a --previous --rm-backups --rm-translations po4a.conf
  38. po4a:
  39. po4a --previous --no-backups po4a.conf
  40. ifdef DOXYGEN
  41. DOXYGEN_SOURCES = $(shell find $(BASE)/apt-pkg -not -name .\\\#* -and \( -name \*.cc -or -name \*.h \) )
  42. clean: doxygen-clean
  43. doxygen-clean:
  44. rm -fr $(BUILD)/doc/doxygen
  45. rm -f $(BUILD)/doc/doxygen-stamp
  46. $(BUILD)/doc/Doxyfile: Doxyfile.in
  47. (cd $(BUILD) && ./config.status doc/Doxyfile)
  48. $(BUILD)/doc/doxygen-stamp: $(DOXYGEN_SOURCES) $(BUILD)/doc/Doxyfile
  49. rm -fr $(BUILD)/doc/doxygen
  50. $(DOXYGEN) $(BUILD)/doc/Doxyfile
  51. touch $(BUILD)/doc/doxygen-stamp
  52. doc: $(BUILD)/doc/doxygen-stamp
  53. endif