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.
 
 
 
 
 
 

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