1997-11-24 14:05:25 -08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
2011-10-16 17:01:16 -07:00
|
|
|
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
|
2010-01-31 15:02:28 -08:00
|
|
|
|
2017-12-17 09:41:34 -08:00
|
|
|
if WITH_PDBGEN
|
|
|
|
|
PDB = pdb
|
|
|
|
|
endif
|
|
|
|
|
|
2000-01-27 02:47:01 -08:00
|
|
|
SUBDIRS = \
|
2017-12-24 12:34:04 -08:00
|
|
|
m4macros \
|
|
|
|
|
cursors \
|
|
|
|
|
themes \
|
|
|
|
|
po \
|
|
|
|
|
po-libgimp \
|
|
|
|
|
po-plug-ins \
|
2019-07-28 11:29:46 -07:00
|
|
|
po-python \
|
2017-12-24 12:34:04 -08:00
|
|
|
po-script-fu \
|
|
|
|
|
po-tips \
|
|
|
|
|
po-windows-installer \
|
|
|
|
|
data \
|
|
|
|
|
desktop \
|
|
|
|
|
menus \
|
|
|
|
|
libgimpbase \
|
|
|
|
|
tools \
|
|
|
|
|
$(PDB) \
|
|
|
|
|
icons \
|
|
|
|
|
libgimpcolor \
|
|
|
|
|
libgimpmath \
|
|
|
|
|
libgimpconfig \
|
|
|
|
|
libgimpmodule \
|
|
|
|
|
libgimpthumb \
|
|
|
|
|
libgimpwidgets \
|
|
|
|
|
libgimp \
|
|
|
|
|
app \
|
2018-03-10 13:48:20 -08:00
|
|
|
app-tools \
|
2017-12-24 12:34:04 -08:00
|
|
|
$(GIMP_MODULES) \
|
|
|
|
|
$(GIMP_PLUGINS) \
|
2020-10-08 04:58:19 -07:00
|
|
|
$(GIMP_EXTENSIONS) \
|
2017-12-24 12:34:04 -08:00
|
|
|
etc \
|
2019-07-23 10:33:15 -07:00
|
|
|
devel-docs \
|
2017-12-24 12:34:04 -08:00
|
|
|
docs \
|
2010-08-26 13:10:07 -07:00
|
|
|
build
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2001-11-24 16:19:38 -08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2003-11-25 17:12:36 -08:00
|
|
|
pkgconfig_DATA = \
|
2004-01-21 19:51:46 -08:00
|
|
|
gimp-@GIMP_PKGCONFIG_VERSION@.pc \
|
|
|
|
|
gimpthumb-@GIMP_PKGCONFIG_VERSION@.pc \
|
|
|
|
|
gimpui-@GIMP_PKGCONFIG_VERSION@.pc
|
1999-08-25 17:31:37 -07:00
|
|
|
|
2004-12-10 15:30:37 -08:00
|
|
|
|
2007-02-26 02:47:22 -08:00
|
|
|
AUTHORS: authors.xml authors.xsl
|
2004-12-10 15:30:37 -08:00
|
|
|
if HAVE_XSLTPROC
|
2011-05-26 10:49:17 -07:00
|
|
|
$(XSLTPROC) -o $(@) $(top_srcdir)/authors.xsl $< || rm -f $(@)
|
2004-12-10 15:30:37 -08:00
|
|
|
endif
|
|
|
|
|
|
2017-10-23 14:49:01 -07:00
|
|
|
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
|
2004-12-10 15:30:37 -08:00
|
|
|
|
1998-11-05 16:51:39 -08:00
|
|
|
EXTRA_DIST = \
|
2002-03-28 07:45:27 -08:00
|
|
|
AUTHORS \
|
|
|
|
|
COPYING \
|
|
|
|
|
ChangeLog \
|
|
|
|
|
ChangeLog.pre-1-0 \
|
|
|
|
|
ChangeLog.pre-1-2 \
|
2004-03-23 10:52:47 -08:00
|
|
|
ChangeLog.pre-2-0 \
|
2007-10-24 07:50:41 -07:00
|
|
|
ChangeLog.pre-2-2 \
|
|
|
|
|
ChangeLog.pre-2-4 \
|
2008-10-01 12:29:46 -07:00
|
|
|
ChangeLog.pre-2-6 \
|
2012-11-29 05:03:04 -08:00
|
|
|
ChangeLog.pre-git \
|
2002-03-28 07:45:27 -08:00
|
|
|
INSTALL \
|
2003-08-15 03:41:31 -07:00
|
|
|
LICENSE \
|
2002-03-28 07:45:27 -08:00
|
|
|
NEWS \
|
2004-04-04 17:17:57 -07:00
|
|
|
NEWS.pre-2-0 \
|
2004-12-21 17:07:11 -08:00
|
|
|
NEWS.pre-2-2 \
|
2007-10-24 07:50:41 -07:00
|
|
|
NEWS.pre-2-4 \
|
2008-10-01 12:29:46 -07:00
|
|
|
NEWS.pre-2-6 \
|
2015-11-22 08:28:39 -08:00
|
|
|
NEWS.pre-2-8 \
|
2018-04-27 17:42:32 -07:00
|
|
|
NEWS.pre-2-10 \
|
2002-03-28 07:45:27 -08:00
|
|
|
README \
|
|
|
|
|
README.i18n \
|
2004-12-10 15:30:37 -08:00
|
|
|
authors.dtd \
|
|
|
|
|
authors.xml \
|
|
|
|
|
authors.xsl \
|
2021-11-28 10:36:07 -08:00
|
|
|
git-version.h
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2004-10-11 17:33:27 -07:00
|
|
|
|
2021-11-28 10:36:07 -08:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gi-docgen --with-python=force --with-javascript=force --with-lua=force
|
2004-10-11 17:33:27 -07:00
|
|
|
|
2002-11-07 09:12:17 -08:00
|
|
|
|
2006-11-08 13:42:32 -08:00
|
|
|
check-defs:
|
2007-05-06 06:12:25 -07:00
|
|
|
@$(PYTHON) $(top_srcdir)/tools/defcheck.py $(top_srcdir) || \
|
|
|
|
|
( echo "*** .def files inconsistent ***"; exit 1; )
|
2004-12-10 15:30:37 -08:00
|
|
|
|
|
|
|
|
validate-authors:
|
|
|
|
|
if HAVE_XMLLINT
|
2007-05-06 06:12:25 -07:00
|
|
|
@cd $(srcdir); \
|
|
|
|
|
$(XMLLINT) --noout --valid authors.xml || \
|
|
|
|
|
( echo "*** authors.xml INVALID ***"; exit 1; )
|
2004-12-10 15:30:37 -08:00
|
|
|
endif
|
|
|
|
|
|
2005-06-25 10:25:13 -07:00
|
|
|
all-local: AUTHORS
|
2004-12-10 15:30:37 -08:00
|
|
|
|
2006-11-08 13:42:32 -08:00
|
|
|
dist-hook: check-defs validate-authors
|
2009-07-13 04:23:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2018-01-29 11:08:13 -08:00
|
|
|
|
2018-03-10 14:54:54 -08:00
|
|
|
generated_sources = \
|
2018-01-29 11:08:13 -08:00
|
|
|
git-version.h
|
|
|
|
|
|
|
|
|
|
# Build git-version.h before anything in the subdirs as this is needed
|
|
|
|
|
# in the about and debug dialog (app/) and in the debug tool (tools/).
|
2018-03-10 14:54:54 -08:00
|
|
|
BUILT_SOURCES = $(generated_sources)
|
2018-01-29 11:08:13 -08:00
|
|
|
|
2018-03-10 14:54:54 -08:00
|
|
|
CLEANFILES = $(generated_sources)
|
2018-01-29 11:08:13 -08:00
|
|
|
|
|
|
|
|
# If git is available, always check if git-version.h should be
|
|
|
|
|
# updated. If git is not available, don't do anything if git-version.h
|
|
|
|
|
# already exists because then we are probably working with a tarball
|
|
|
|
|
# in which case the git-version.h we ship is correct.
|
|
|
|
|
git-version.h: update-git-version-header
|
|
|
|
|
@if test -e "$(top_srcdir)/.git"; then \
|
|
|
|
|
git_version="`git --git-dir=$(top_srcdir)/.git describe --always`"; \
|
|
|
|
|
git_version_abbrev="`git --git-dir=$(top_srcdir)/.git rev-parse --short HEAD`"; \
|
|
|
|
|
git_last_commit_year="`git --git-dir=$(top_srcdir)/.git log -n1 --reverse --pretty=%ci | cut -b 1-4`"; \
|
|
|
|
|
elif test ! -f "$@"; then \
|
|
|
|
|
git_version="Unknown, shouldn't happen"; \
|
|
|
|
|
git_version_abbrev="$$git_version"; \
|
|
|
|
|
git_last_commit_timestamp=-1; \
|
|
|
|
|
git_last_commit_year="`date -u '+%Y'`"; \
|
|
|
|
|
fi; \
|
|
|
|
|
if test -n "$$git_version"; then \
|
|
|
|
|
echo "#ifndef __GIT_VERSION_H__" > "$@.tmp"; \
|
|
|
|
|
echo "#define __GIT_VERSION_H__" >> "$@.tmp"; \
|
|
|
|
|
echo "#define GIMP_GIT_VERSION \"$$git_version\"" >> "$@.tmp"; \
|
|
|
|
|
echo "#define GIMP_GIT_VERSION_ABBREV \"$$git_version_abbrev\"" >> "$@.tmp"; \
|
|
|
|
|
echo "#define GIMP_GIT_LAST_COMMIT_YEAR \"$$git_last_commit_year\"" >> "$@.tmp"; \
|
|
|
|
|
echo "#endif /* __GIT_VERSION_H__ */" >> "$@.tmp"; \
|
|
|
|
|
fi
|
|
|
|
|
@if ( test -f "$@.tmp" && test -f "$@" && cmp "$@.tmp" "$@" > /dev/null ); then \
|
|
|
|
|
rm -f "$@.tmp"; \
|
|
|
|
|
elif test -f "$@.tmp"; then \
|
|
|
|
|
mv "$@.tmp" "$@"; \
|
|
|
|
|
echo " git HEAD changed: $@ regenerated"; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
.PHONY: update-git-version-header
|