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.
 
 
 
 
 
 

106 lines
2.5 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. # make sure we pass the correct jimtcl flags to distcheck
  5. DISTCHECK_CONFIGURE_FLAGS = --with-jim-ext=nvp --disable-lineedit
  6. nobase_dist_pkgdata_DATA = \
  7. contrib/libdcc/dcc_stdio.c \
  8. contrib/libdcc/dcc_stdio.h \
  9. contrib/libdcc/example.c \
  10. contrib/libdcc/README \
  11. contrib/openocd.udev
  12. if INTERNAL_JIMTCL
  13. SUBDIRS = jimtcl
  14. else
  15. SUBDIRS =
  16. endif
  17. SUBDIRS += src doc
  18. EXTRA_DIST = \
  19. BUGS \
  20. HACKING \
  21. NEWTAPS \
  22. PATCHES.txt \
  23. README.Win32 \
  24. Doxyfile.in \
  25. tools/logger.pl \
  26. contrib/loaders
  27. libtool: $(LIBTOOL_DEPS)
  28. $(SHELL) ./config.status --recheck
  29. docs: pdf html doxygen
  30. Doxyfile: $(srcdir)/Doxyfile.in
  31. @echo "Creating $@ from $<..."
  32. @( \
  33. echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
  34. echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
  35. sed -e 's,@srcdir\@,$(srcdir),' \
  36. -e 's,@builddir\@,$(builddir),' \
  37. -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
  38. -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
  39. ) > $@
  40. THE_MANUAL = doxygen/latex/refman.pdf
  41. doxygen::
  42. $(MAKE) Doxyfile
  43. doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
  44. @if [ -f doxygen/latex/refman.tex ]; then \
  45. echo "Creating $(THE_MANUAL)..."; \
  46. $(MAKE) $(THE_MANUAL); \
  47. else \
  48. echo "Skipping Doxygen PDF..."; \
  49. fi
  50. $(THE_MANUAL): %.pdf: %.tex
  51. -cd $$(dirname $*) && pdflatex $$(basename $*)
  52. -cd $$(dirname $*) && pdflatex $$(basename $*)
  53. TCL_PATH = tcl
  54. # command to find paths of script files, relative to TCL_PATH
  55. TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
  56. sed -e 's,^$(srcdir)/$(TCL_PATH),,'
  57. dist-hook:
  58. for i in $$($(TCL_FILES)); do \
  59. j="$(distdir)/$(TCL_PATH)/$$i" && \
  60. mkdir -p "$$(dirname $$j)" && \
  61. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  62. done
  63. install-data-hook:
  64. for i in $$($(TCL_FILES)); do \
  65. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  66. mkdir -p "$$(dirname $$j)" && \
  67. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  68. done
  69. uninstall-hook:
  70. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  71. distclean-local:
  72. rm -rf Doxyfile doxygen
  73. DISTCLEANFILES = doxygen.log
  74. MAINTAINERCLEANFILES = \
  75. $(srcdir)/INSTALL \
  76. $(srcdir)/configure \
  77. $(srcdir)/Makefile.in \
  78. $(srcdir)/depcomp \
  79. $(srcdir)/config.guess \
  80. $(srcdir)/config.sub \
  81. $(srcdir)/config.h.in \
  82. $(srcdir)/config.h.in~ \
  83. $(srcdir)/compile \
  84. $(srcdir)/ltmain.sh \
  85. $(srcdir)/missing \
  86. $(srcdir)/aclocal.m4 \
  87. $(srcdir)/install-sh