Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ## Process this file with automake to produce Makefile.in
  2. ## Created by Anjuta
  3. ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
  4. # Set up subdirectories to traverse
  5. SUBDIRS = libgflow libgtkflow test examples po
  6. if ENABLE_DOCS
  7. SUBDIRS += docs
  8. endif
  9. # Define available flags
  10. DISTCHECK_CONFIGURE_FLAGS = \
  11. --disable-introspection \
  12. $(NULL)
  13. ### Specify files to include in dist
  14. # in share/doc/
  15. gtkflowdocdir = ${prefix}/doc/gtkflow
  16. gtkflowdoc_DATA = \
  17. README.md \
  18. COPYING \
  19. AUTHORS \
  20. ChangeLog \
  21. INSTALL \
  22. NEWS
  23. # with make dist
  24. INTLTOOL_FILES = intltool-extract.in \
  25. intltool-merge.in \
  26. intltool-update.in
  27. EXTRA_DIST = $(gtkflowdoc_DATA) \
  28. autogen.sh \
  29. config.rpath \
  30. $(INTLTOOL_FILES)
  31. # Lists of generated files you want to be able to clean
  32. MAINTAINERCLEANFILES = \
  33. ABOUT-NLS \
  34. $(srcdir)/aclocal.m4 \
  35. $(srcdir)/compile \
  36. $(srcdir)/config.guess \
  37. $(srcdir)/config.h.in \
  38. $(srcdir)/config.rpath \
  39. $(srcdir)/config.sub \
  40. $(srcdir)/depcomp \
  41. $(srcdir)/install-sh \
  42. $(srcdir)/ltmain.sh \
  43. $(srcdir)/missing \
  44. $(srcdir)/mkinstalldirs \
  45. $(srcdir)/ChangeLog \
  46. `find "$(srcdir)" -type f -name Makefile.in -print` \
  47. `find "m4" -type f -name "*.m4" ! -name "as-compiler-flag.m4" ! -name "introspection.m4" ! -name "vala.m4" -print` \
  48. po/Makevars.template \
  49. po/Rules-quot \
  50. po/boldquot.sed \
  51. po/en@boldquot.header \
  52. po/en@quot.header \
  53. po/insert-header.sin \
  54. po/missing \
  55. po/quot.sed \
  56. po/remove-potcdate.sin \
  57. $(NULL)
  58. DISTCLEANFILES = intltool-extract \
  59. intltool-merge \
  60. intltool-update \
  61. po/.intltool-merge-cache \
  62. ChangeLog
  63. # Automatically generate ChangeLog from git
  64. # (do we need to call make ChangeLog ourselves?)
  65. ChangeLog:
  66. @echo Creating $@
  67. @if test -d "$(srcdir)/.git"; then \
  68. (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
  69. && mv -f $@.tmp $@ \
  70. || ($(RM) $@.tmp; \
  71. echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
  72. (test -f $@ || echo git-log is required to generate this file >> $@)); \
  73. else \
  74. test -f $@ || \
  75. (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
  76. echo A git checkout and git-log is required to generate this file >> $@); \
  77. fi
  78. .PHONY: ChangeLog
  79. # Remove doc directory on uninstall (not sure why :D)
  80. uninstall-local:
  81. -rm -r $(gtkflowdocdir)