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.
 
 
 
 
 
 

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