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.

Makefile.am 2.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 = --disable-install-jim
  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/99-openocd.rules
  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. README.Windows \
  23. README.OSX \
  24. $(wildcard $(srcdir)/NEWS*) \
  25. Doxyfile.in \
  26. tools/logger.pl \
  27. tools/rlink_make_speed_table \
  28. tools/st7_dtc_as \
  29. contrib
  30. libtool: $(LIBTOOL_DEPS)
  31. $(SHELL) ./config.status --recheck
  32. docs: pdf html doxygen
  33. Doxyfile: $(srcdir)/Doxyfile.in
  34. @echo "Creating $@ from $<..."
  35. @( \
  36. echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
  37. echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
  38. sed -e 's,@srcdir\@,$(srcdir),' \
  39. -e 's,@builddir\@,$(builddir),' \
  40. -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
  41. -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
  42. ) > $@
  43. THE_MANUAL = doxygen/latex/refman.pdf
  44. doxygen::
  45. $(MAKE) Doxyfile
  46. doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
  47. @if [ -f doxygen/latex/refman.tex ]; then \
  48. echo "Creating $(THE_MANUAL)..."; \
  49. $(MAKE) $(THE_MANUAL); \
  50. else \
  51. echo "Skipping Doxygen PDF..."; \
  52. fi
  53. $(THE_MANUAL): %.pdf: %.tex
  54. -cd $$(dirname $*) && pdflatex $$(basename $*)
  55. -cd $$(dirname $*) && pdflatex $$(basename $*)
  56. TCL_PATH = tcl
  57. # command to find paths of script files, relative to TCL_PATH
  58. TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
  59. sed -e 's,^$(srcdir)/$(TCL_PATH),,'
  60. dist-hook:
  61. if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
  62. git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
  63. fi
  64. for i in $$($(TCL_FILES)); do \
  65. j="$(distdir)/$(TCL_PATH)/$$i" && \
  66. mkdir -p "$$(dirname $$j)" && \
  67. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  68. done
  69. install-data-hook:
  70. for i in $$($(TCL_FILES)); do \
  71. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  72. mkdir -p "$$(dirname $$j)" && \
  73. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  74. done
  75. uninstall-hook:
  76. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  77. distclean-local:
  78. rm -rf Doxyfile doxygen
  79. rm -f $(srcdir)/jimtcl/configure.gnu
  80. DISTCLEANFILES = doxygen.log
  81. MAINTAINERCLEANFILES = \
  82. $(srcdir)/INSTALL \
  83. $(srcdir)/configure \
  84. $(srcdir)/Makefile.in \
  85. $(srcdir)/depcomp \
  86. $(srcdir)/config.guess \
  87. $(srcdir)/config.sub \
  88. $(srcdir)/config.h.in \
  89. $(srcdir)/config.h.in~ \
  90. $(srcdir)/compile \
  91. $(srcdir)/ltmain.sh \
  92. $(srcdir)/missing \
  93. $(srcdir)/aclocal.m4 \
  94. $(srcdir)/install-sh