Makefile.am 2.69 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2
## Process this file with automake to produce Makefile.in

3
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
4

5 6 7 8
if WITH_PDBGEN
PDB = pdb
endif

9
SUBDIRS = \
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
	m4macros		\
	cursors			\
	themes			\
	po			\
	po-libgimp		\
	po-plug-ins		\
	po-python		\
	po-script-fu		\
	po-tips			\
	po-windows-installer	\
	data			\
	desktop			\
	menus			\
	libgimpbase		\
	tools			\
	$(PDB)			\
	icons			\
	libgimpcolor		\
	libgimpmath		\
	libgimpconfig		\
	libgimpmodule		\
	libgimpthumb		\
	libgimpwidgets		\
	libgimp			\
	app			\
	$(GIMP_MODULES)		\
	$(GIMP_PLUGINS)		\
	etc			\
	devel-docs		\
	docs			\
40
	build
Elliot Lee's avatar
Elliot Lee committed
41

42
pkgconfigdir = $(libdir)/pkgconfig
43
pkgconfig_DATA = \
44 45 46
	gimp-@GIMP_PKGCONFIG_VERSION@.pc	\
	gimpthumb-@GIMP_PKGCONFIG_VERSION@.pc	\
	gimpui-@GIMP_PKGCONFIG_VERSION@.pc
47

Sven Neumann's avatar
Sven Neumann committed
48

49
AUTHORS: authors.xml authors.xsl
Sven Neumann's avatar
Sven Neumann committed
50
if HAVE_XSLTPROC
51
	$(XSLTPROC) -o $(@) $(top_srcdir)/authors.xsl $< || rm -f $(@)
Sven Neumann's avatar
Sven Neumann committed
52 53
endif

54 55 56 57
authors.md: authors.xml authors4gimp-web.xsl
if HAVE_XSLTPROC
	$(XSLTPROC) --stringparam today "`date --iso-8601=seconds`" -o $(@) $(top_srcdir)/authors4gimp-web.xsl $< || rm -f $(@)
endif
Sven Neumann's avatar
Sven Neumann committed
58

59
EXTRA_DIST = \
60 61 62 63 64
	AUTHORS			\
	COPYING			\
	ChangeLog		\
	ChangeLog.pre-1-0	\
	ChangeLog.pre-1-2	\
65
	ChangeLog.pre-2-0	\
66 67
	ChangeLog.pre-2-2	\
	ChangeLog.pre-2-4	\
68
	ChangeLog.pre-2-6	\
69
	ChangeLog.pre-git	\
70 71
	HACKING			\
	INSTALL			\
Sven Neumann's avatar
Sven Neumann committed
72
	LICENSE			\
73
	NEWS			\
74
	NEWS.pre-2-0		\
75
	NEWS.pre-2-2		\
76
	NEWS.pre-2-4		\
77
	NEWS.pre-2-6		\
78
	NEWS.pre-2-8		\
79 80
	README			\
	README.i18n		\
Sven Neumann's avatar
Sven Neumann committed
81 82 83
	authors.dtd		\
	authors.xml		\
	authors.xsl		\
84
	config.h.win32		\
85 86
	gimp-zip.in		\
	gtk-doc.make
Elliot Lee's avatar
Elliot Lee committed
87

88

89
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
90

Sven Neumann's avatar
Sven Neumann committed
91

Sven Neumann's avatar
Sven Neumann committed
92
check-defs:
93 94
	@$(PYTHON) $(top_srcdir)/tools/defcheck.py $(top_srcdir) || \
	  ( echo "*** .def files inconsistent ***"; exit 1; )
Sven Neumann's avatar
Sven Neumann committed
95 96 97

validate-authors:
if HAVE_XMLLINT
98 99 100
	@cd $(srcdir); \
	$(XMLLINT) --noout --valid authors.xml || \
	  ( echo "*** authors.xml INVALID ***"; exit 1; )
Sven Neumann's avatar
Sven Neumann committed
101 102
endif

103
all-local: AUTHORS
Sven Neumann's avatar
Sven Neumann committed
104

Sven Neumann's avatar
Sven Neumann committed
105
dist-hook: check-defs validate-authors
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126



CHANGELOG_START = 74424325abb54620b370f2595445b2b2a19fe5e7

ChangeLog: $(srcdir)/ChangeLog $(srcdir)/ChangeLog.pre-git
$(srcdir)/ChangeLog:
	@echo Creating $@ based on git log
	@if test -d "$(srcdir)/.git"; then \
	  (GIT_DIR=$(top_srcdir)/.git ./missing --run \
	   git log $(CHANGELOG_START)^.. --stat) | fmt --split-only > $@.tmp \
	  && mv -f $@.tmp $@ && echo Appending ChangeLog.pre-git && cat ChangeLog.pre-git >> $@ \
	  || ($(RM) $@.tmp; \
	      echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
	      (test -f $@ || echo git-log is required to generate this file >> $@)); \
	else \
	  test -f $@ || \
	  (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
	  echo A git checkout and git-log is required to generate this file >> $@); \
	fi
.PHONY: $(srcdir)/ChangeLog