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.
 
 
 
 
 
 

110 lines
2.7 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. 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. if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
  59. git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
  60. fi
  61. for i in $$($(TCL_FILES)); do \
  62. j="$(distdir)/$(TCL_PATH)/$$i" && \
  63. mkdir -p "$$(dirname $$j)" && \
  64. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  65. done
  66. install-data-hook:
  67. for i in $$($(TCL_FILES)); do \
  68. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  69. mkdir -p "$$(dirname $$j)" && \
  70. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  71. done
  72. uninstall-hook:
  73. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  74. distclean-local:
  75. rm -rf Doxyfile doxygen
  76. rm -f $(srcdir)/jimtcl/configure.gnu
  77. DISTCLEANFILES = doxygen.log
  78. MAINTAINERCLEANFILES = \
  79. $(srcdir)/INSTALL \
  80. $(srcdir)/configure \
  81. $(srcdir)/Makefile.in \
  82. $(srcdir)/depcomp \
  83. $(srcdir)/config.guess \
  84. $(srcdir)/config.sub \
  85. $(srcdir)/config.h.in \
  86. $(srcdir)/config.h.in~ \
  87. $(srcdir)/compile \
  88. $(srcdir)/ltmain.sh \
  89. $(srcdir)/missing \
  90. $(srcdir)/aclocal.m4 \
  91. $(srcdir)/install-sh