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 3.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. # do not run Jim Tcl tests (esp. during distcheck)
  7. check-recursive: SUBDIRS :=
  8. nobase_dist_pkgdata_DATA = \
  9. contrib/libdcc/dcc_stdio.c \
  10. contrib/libdcc/dcc_stdio.h \
  11. contrib/libdcc/example.c \
  12. contrib/libdcc/README \
  13. contrib/60-openocd.rules
  14. SUBDIRS =
  15. DIST_SUBDIRS =
  16. bin_PROGRAMS =
  17. noinst_LTLIBRARIES =
  18. info_TEXINFOS =
  19. dist_man_MANS =
  20. EXTRA_DIST =
  21. if INTERNAL_JIMTCL
  22. SUBDIRS += jimtcl
  23. DIST_SUBDIRS += jimtcl
  24. endif
  25. # common flags used in openocd build
  26. AM_CFLAGS = $(GCC_WARNINGS)
  27. AM_CPPFLAGS = $(HOST_CPPFLAGS)\
  28. -I$(top_srcdir)/src \
  29. -I$(top_builddir)/src \
  30. -I$(top_srcdir)/src/helper \
  31. -DPKGDATADIR=\"$(pkgdatadir)\" \
  32. -DBINDIR=\"$(bindir)\"
  33. if INTERNAL_JIMTCL
  34. AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \
  35. -I$(top_builddir)/jimtcl
  36. endif
  37. EXTRA_DIST += \
  38. BUGS \
  39. HACKING \
  40. NEWTAPS \
  41. README.Windows \
  42. README.macOS \
  43. $(EXTRA_DIST_NEWS) \
  44. Doxyfile.in \
  45. tools/logger.pl \
  46. tools/rlink_make_speed_table \
  47. tools/st7_dtc_as \
  48. contrib
  49. libtool: $(LIBTOOL_DEPS)
  50. $(SHELL) ./config.status --recheck
  51. docs: pdf html doxygen
  52. Doxyfile: $(srcdir)/Doxyfile.in
  53. @echo "Creating $@ from $<..."
  54. @( \
  55. echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
  56. echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
  57. sed -e 's,@srcdir\@,$(srcdir),' \
  58. -e 's,@builddir\@,$(builddir),' \
  59. -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
  60. -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
  61. ) > $@
  62. THE_MANUAL = doxygen/latex/refman.pdf
  63. doxygen::
  64. $(MAKE) Doxyfile
  65. doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
  66. @if [ -f doxygen/latex/refman.tex ]; then \
  67. echo "Creating $(THE_MANUAL)..."; \
  68. $(MAKE) $(THE_MANUAL); \
  69. else \
  70. echo "Skipping Doxygen PDF..."; \
  71. fi
  72. $(THE_MANUAL): %.pdf: %.tex
  73. -cd $$(dirname $*) && pdflatex $$(basename $*)
  74. -cd $$(dirname $*) && pdflatex $$(basename $*)
  75. TCL_PATH = tcl
  76. # command to find paths of script files, relative to TCL_PATH
  77. TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
  78. sed -e 's,^$(srcdir)/$(TCL_PATH),,'
  79. dist-hook:
  80. if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
  81. git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
  82. fi
  83. for i in $$($(TCL_FILES)); do \
  84. j="$(distdir)/$(TCL_PATH)/$$i" && \
  85. mkdir -p "$$(dirname $$j)" && \
  86. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  87. done
  88. install-data-hook:
  89. for i in $$($(TCL_FILES)); do \
  90. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  91. mkdir -p "$$(dirname $$j)" && \
  92. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  93. done
  94. uninstall-hook:
  95. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  96. distclean-local:
  97. rm -rf Doxyfile doxygen
  98. rm -f $(srcdir)/jimtcl/configure.gnu
  99. DISTCLEANFILES = doxygen.log
  100. METASOURCES = AUTO
  101. BUILT_SOURCES =
  102. CLEANFILES =
  103. MAINTAINERCLEANFILES = \
  104. %D%/INSTALL \
  105. %D%/configure \
  106. %D%/Makefile.in \
  107. %D%/depcomp \
  108. %D%/config.guess \
  109. %D%/config.sub \
  110. %D%/config.h.in \
  111. %D%/config.h.in~ \
  112. %D%/compile \
  113. %D%/ltmain.sh \
  114. %D%/missing \
  115. %D%/aclocal.m4 \
  116. %D%/install-sh \
  117. %D%/texinfo.tex
  118. include src/Makefile.am
  119. include doc/Makefile.am