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.
 
 
 
 
 
 

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