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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. ) > $@
  24. doxygen::
  25. $(MAKE) Doxyfile
  26. doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
  27. TCL_PATH = tcl
  28. # command to find paths of script files, relative to TCL_PATH
  29. TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
  30. sed -e 's,^$(srcdir)/$(TCL_PATH),,'
  31. dist-hook:
  32. for i in $$($(TCL_FILES)); do \
  33. j="$(distdir)/$(TCL_PATH)/$$i" && \
  34. mkdir -p "$$(dirname $$j)" && \
  35. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  36. done
  37. install-data-hook:
  38. for i in $$($(TCL_FILES)); do \
  39. j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
  40. mkdir -p "$$(dirname $$j)" && \
  41. $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
  42. done
  43. uninstall-hook:
  44. rm -rf $(DESTDIR)$(pkgdatadir)/scripts
  45. distclean-local:
  46. rm -rf Doxyfile doxygen
  47. DISTCLEANFILES = doxygen.log
  48. MAINTAINERCLEANFILES = \
  49. $(srcdir)/INSTALL \
  50. $(srcdir)/configure \
  51. $(srcdir)/Makefile.in \
  52. $(srcdir)/depcomp \
  53. $(srcdir)/config.guess \
  54. $(srcdir)/config.sub \
  55. $(srcdir)/config.h.in \
  56. $(srcdir)/config.h.in~ \
  57. $(srcdir)/compile \
  58. $(srcdir)/ltmain.sh \
  59. $(srcdir)/missing \
  60. $(srcdir)/aclocal.m4 \
  61. $(srcdir)/install-sh