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.
 
 
 
 
 
 

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