Makefile.am 2.41 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
SUBDIRS = \
6 7 8 9 10 11
	m4macros	\
	cursors		\
	themes		\
	po		\
	po-libgimp	\
	po-plug-ins	\
12
	po-python	\
13
	po-script-fu	\
Sven Neumann's avatar
Sven Neumann committed
14
	po-tips		\
15
	data		\
16
	desktop		\
17 18
	menus		\
	libgimpbase	\
19 20
	tools		\
	icons		\
21 22
	libgimpcolor	\
	libgimpmath	\
Manish Singh's avatar
Manish Singh committed
23
	libgimpconfig	\
24 25 26 27 28 29 30 31 32
	libgimpmodule	\
	libgimpthumb	\
	libgimpwidgets	\
	libgimp		\
	app		\
	$(GIMP_MODULES)	\
	$(GIMP_PLUGINS)	\
	etc		\
	devel-docs	\
33 34
	docs		\
	build
Elliot Lee's avatar
Elliot Lee committed
35

36
pkgconfigdir = $(libdir)/pkgconfig
37
pkgconfig_DATA = \
38 39 40
	gimp-@GIMP_PKGCONFIG_VERSION@.pc	\
	gimpthumb-@GIMP_PKGCONFIG_VERSION@.pc	\
	gimpui-@GIMP_PKGCONFIG_VERSION@.pc
41

Sven Neumann's avatar
Sven Neumann committed
42

43
AUTHORS: authors.xml authors.xsl
Sven Neumann's avatar
Sven Neumann committed
44
if HAVE_XSLTPROC
45
	$(XSLTPROC) -o $(@) $(top_srcdir)/authors.xsl $< || rm -f $(@)
Sven Neumann's avatar
Sven Neumann committed
46 47 48
endif


49
EXTRA_DIST = \
50 51 52 53 54
	AUTHORS			\
	COPYING			\
	ChangeLog		\
	ChangeLog.pre-1-0	\
	ChangeLog.pre-1-2	\
55
	ChangeLog.pre-2-0	\
56 57
	ChangeLog.pre-2-2	\
	ChangeLog.pre-2-4	\
58
	ChangeLog.pre-2-6	\
59
	ChangeLog.pre-git	\
60 61
	HACKING			\
	INSTALL			\
Sven Neumann's avatar
Sven Neumann committed
62
	LICENSE			\
63
	NEWS			\
64
	NEWS.pre-2-0		\
65
	NEWS.pre-2-2		\
66
	NEWS.pre-2-4		\
67
	NEWS.pre-2-6		\
68
	NEWS.pre-2-8		\
69 70
	README			\
	README.i18n		\
Sven Neumann's avatar
Sven Neumann committed
71 72 73
	authors.dtd		\
	authors.xml		\
	authors.xsl		\
74
	config.h.win32		\
75 76
	gimp-zip.in		\
	gtk-doc.make
Elliot Lee's avatar
Elliot Lee committed
77

78

79
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
80

Sven Neumann's avatar
Sven Neumann committed
81

Sven Neumann's avatar
Sven Neumann committed
82
check-defs:
83 84
	@$(PYTHON) $(top_srcdir)/tools/defcheck.py $(top_srcdir) || \
	  ( echo "*** .def files inconsistent ***"; exit 1; )
Sven Neumann's avatar
Sven Neumann committed
85 86 87

validate-authors:
if HAVE_XMLLINT
88 89 90
	@cd $(srcdir); \
	$(XMLLINT) --noout --valid authors.xml || \
	  ( echo "*** authors.xml INVALID ***"; exit 1; )
Sven Neumann's avatar
Sven Neumann committed
91 92
endif

93
all-local: AUTHORS
Sven Neumann's avatar
Sven Neumann committed
94

Sven Neumann's avatar
Sven Neumann committed
95
dist-hook: check-defs validate-authors
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116



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