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.
 
 
 
 
 
 

92 lines
2.2 KiB

  1. # not a GNU package. You can remove this line, if
  2. # have all needed files, that a GNU package needs
  3. AUTOMAKE_OPTIONS = gnu 1.6
  4. nobase_dist_pkgdata_DATA = \
  5. contrib/libdcc/dcc_stdio.c \
  6. contrib/libdcc/dcc_stdio.h \
  7. contrib/libdcc/example.c \
  8. contrib/libdcc/README \
  9. contrib/openocd.udev
  10. SUBDIRS = src doc
  11. EXTRA_DIST = \
  12. Doxyfile.in \
  13. tools/logger.pl
  14. libtool: $(LIBTOOL_DEPS)
  15. $(SHELL) ./config.status --recheck
  16. docs: pdf html doxygen
  17. Doxyfile: $(srcdir)/Doxyfile.in
  18. @echo "Creating $@ from $<..."
  19. @( \
  20. echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
  21. echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
  22. sed -e 's,@srcdir\@,$(srcdir),' \
  23. -e 's,@builddir\@,$(builddir),' \
  24. -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
  25. -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
  26. ) > $@
  27. THE_MANUAL = doxygen/latex/refman.pdf
  28. doxygen::
  29. $(MAKE) Doxyfile
  30. doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
  31. @if [ -f doxygen/latex/refman.tex ]; then \
  32. echo "Creating $(THE_MANUAL)..."; \
  33. $(MAKE) $(THE_MANUAL); \
  34. else \
  35. echo "Skipping Doxygen PDF..."; \
  36. fi
  37. $(THE_MANUAL): %.pdf: %.tex
  38. -cd $$(dirname $*) && pdflatex $$(basename $*)
  39. -cd $$(dirname $*) && pdflatex $$(basename $*)
  40. TCL_PATH = tcl
  41. # command to find paths of script files, relative to TCL_PATH
  42. TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
  43. sed -e 's,^$(srcdir)/$(TCL_PATH),,'
  44. dist-hook:
  45. for i in $$($(TCL_FILES)); do \
  46. j="$(distdir)/$(TCL_PATH)/$$i" && \
  47. mkdir -p "$$(dirname $$j)" && \
  48. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  49. done
  50. install-data-hook:
  51. for i in $$($(TCL_FILES)); do \
  52. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  53. mkdir -p "$$(dirname $$j)" && \
  54. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  55. done
  56. uninstall-hook:
  57. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  58. distclean-local:
  59. rm -rf Doxyfile doxygen
  60. DISTCLEANFILES = doxygen.log
  61. MAINTAINERCLEANFILES = \
  62. $(srcdir)/INSTALL \
  63. $(srcdir)/configure \
  64. $(srcdir)/Makefile.in \
  65. $(srcdir)/depcomp \
  66. $(srcdir)/config.guess \
  67. $(srcdir)/config.sub \
  68. $(srcdir)/config.h.in \
  69. $(srcdir)/config.h.in~ \
  70. $(srcdir)/compile \
  71. $(srcdir)/ltmain.sh \
  72. $(srcdir)/missing \
  73. $(srcdir)/aclocal.m4 \
  74. $(srcdir)/install-sh