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.
 
 
 
 
 
 

86 lines
2.0 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. nobase_dist_pkgdata_DATA = \
  5. contrib/libdcc/dcc_stdio.c \
  6. contrib/libdcc/dcc_stdio.h \
  7. contrib/libdcc/example.c \
  8. contrib/libdcc/README \
  9. contrib/openocd.udev
  10. SUBDIRS = src doc
  11. EXTRA_DIST = \
  12. Doxyfile.in \
  13. tools/logger.pl
  14. libtool: $(LIBTOOL_DEPS)
  15. $(SHELL) ./config.status --recheck
  16. docs: pdf html doxygen
  17. Doxyfile: $(srcdir)/Doxyfile.in
  18. @echo "Creating $@ from $<..."
  19. @( \
  20. echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
  21. echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
  22. sed -e 's,@srcdir\@,$(srcdir),' \
  23. -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
  24. -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
  25. ) > $@
  26. THE_MANUAL = doxygen/latex/refman.pdf
  27. doxygen::
  28. $(MAKE) Doxyfile
  29. doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
  30. $(MAKE) $(THE_MANUAL)
  31. %.pdf: %.tex
  32. -cd $$(dirname $*) && pdflatex $$(basename $*)
  33. -cd $$(dirname $*) && pdflatex $$(basename $*)
  34. TCL_PATH = tcl
  35. # command to find paths of script files, relative to TCL_PATH
  36. TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
  37. sed -e 's,^$(srcdir)/$(TCL_PATH),,'
  38. dist-hook:
  39. for i in $$($(TCL_FILES)); do \
  40. j="$(distdir)/$(TCL_PATH)/$$i" && \
  41. mkdir -p "$$(dirname $$j)" && \
  42. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  43. done
  44. install-data-hook:
  45. for i in $$($(TCL_FILES)); do \
  46. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  47. mkdir -p "$$(dirname $$j)" && \
  48. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  49. done
  50. uninstall-hook:
  51. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  52. distclean-local:
  53. rm -rf Doxyfile doxygen
  54. DISTCLEANFILES = doxygen.log
  55. MAINTAINERCLEANFILES = \
  56. $(srcdir)/INSTALL \
  57. $(srcdir)/configure \
  58. $(srcdir)/Makefile.in \
  59. $(srcdir)/depcomp \
  60. $(srcdir)/config.guess \
  61. $(srcdir)/config.sub \
  62. $(srcdir)/config.h.in \
  63. $(srcdir)/config.h.in~ \
  64. $(srcdir)/compile \
  65. $(srcdir)/ltmain.sh \
  66. $(srcdir)/missing \
  67. $(srcdir)/aclocal.m4 \
  68. $(srcdir)/install-sh