jack1 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.6KB

  1. ## Process this file with automake to produce Makefile.in
  2. DOX=reference.doxygen
  3. EXTRA_DIST=
  4. DOC_STAMPS=html-build.stamp
  5. DOC_DIR=$(datadir)/doc/jack
  6. all-local: doxygen-build.stamp
  7. doxygen-build.stamp: $(DOX)
  8. @echo '*** Running doxygen ***'
  9. doxygen $(DOX)
  10. touch doxygen-build.stamp
  11. clean-local:
  12. rm -f *~ *.bak $(DOC_STAMPS) || true
  13. distclean-local: clean
  14. rm -f *.stamp || true
  15. if test -d reference; then rm -rf reference; fi
  16. install-data-local:
  17. $(mkinstalldirs) $(DOC_DIR)/reference/html
  18. (installfiles=`echo reference/html/*.html`; \
  19. if test "$$installfiles" = 'reference/html/*.html'; \
  20. then echo '-- Nothing to install' ; \
  21. else \
  22. for i in $$installfiles reference/html/doxygen.gif reference/html/doxygen.css; do \
  23. echo '-- Installing '$$i ; \
  24. $(INSTALL_DATA) $$i $(DOC_DIR)/reference/html; \
  25. done; \
  26. fi)
  27. # we need doxygen stuff built so we can know what to uninstall
  28. uninstall-local: doxygen-build.stamp
  29. (installfiles=`echo reference/html/*.html`; \
  30. if test "$$installfiles" = 'reference/html/*.html'; \
  31. then echo '-- Nothing to uninstall' ; \
  32. else \
  33. for i in $$installfiles reference/html/doxygen.gif reference/html/doxygen.css; do \
  34. echo '-- Unstalling '$$i ; \
  35. rm $(DOC_DIR)/$$i; \
  36. done; \
  37. fi)
  38. #
  39. # Require doxygen when making dist
  40. #
  41. if HAVE_DOXYGEN
  42. dist-check-doxygen:
  43. else
  44. dist-check-doxygen:
  45. @echo "*** doxygen must be installed and enabled in order to make dist"
  46. @false
  47. endif
  48. dist-hook: dist-hook-local dist-check-doxygen
  49. mkdir $(distdir)/reference
  50. mkdir $(distdir)/reference/html
  51. -cp reference/html/*.html reference/html/*.css \
  52. reference/html/*.gif $(distdir)/reference/html
  53. .PHONY : dist-hook-local