1997-11-25 06:05:25 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2011-10-17 08:01:16 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
|
2010-02-01 07:02:28 +08:00
|
|
|
|
2017-12-18 01:41:34 +08:00
|
|
|
if WITH_PDBGEN
|
|
|
|
PDB = pdb
|
|
|
|
endif
|
|
|
|
|
2000-01-27 18:47:01 +08:00
|
|
|
SUBDIRS = \
|
2017-12-25 04:34:04 +08:00
|
|
|
m4macros \
|
|
|
|
cursors \
|
|
|
|
themes \
|
|
|
|
po \
|
|
|
|
po-libgimp \
|
|
|
|
po-plug-ins \
|
2019-07-29 02:29:46 +08:00
|
|
|
po-python \
|
2017-12-25 04: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-11 05:48:20 +08:00
|
|
|
app-tools \
|
2017-12-25 04:34:04 +08:00
|
|
|
$(GIMP_MODULES) \
|
|
|
|
$(GIMP_PLUGINS) \
|
2020-10-08 19:58:19 +08:00
|
|
|
$(GIMP_EXTENSIONS) \
|
2017-12-25 04:34:04 +08:00
|
|
|
etc \
|
2019-07-24 01:33:15 +08:00
|
|
|
devel-docs \
|
2017-12-25 04:34:04 +08:00
|
|
|
docs \
|
2010-08-27 04:10:07 +08:00
|
|
|
build
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2001-11-25 08:19:38 +08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2003-11-26 09:12:36 +08:00
|
|
|
pkgconfig_DATA = \
|
2004-01-22 11:51:46 +08:00
|
|
|
gimp-@GIMP_PKGCONFIG_VERSION@.pc \
|
|
|
|
gimpthumb-@GIMP_PKGCONFIG_VERSION@.pc \
|
|
|
|
gimpui-@GIMP_PKGCONFIG_VERSION@.pc
|
1999-08-26 08:31:37 +08:00
|
|
|
|
2004-12-11 07:30:37 +08:00
|
|
|
|
2007-02-26 18:47:22 +08:00
|
|
|
AUTHORS: authors.xml authors.xsl
|
2004-12-11 07:30:37 +08:00
|
|
|
if HAVE_XSLTPROC
|
2011-05-27 01:49:17 +08:00
|
|
|
$(XSLTPROC) -o $(@) $(top_srcdir)/authors.xsl $< || rm -f $(@)
|
2004-12-11 07:30:37 +08:00
|
|
|
endif
|
|
|
|
|
2017-10-24 05:49:01 +08: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-11 07:30:37 +08:00
|
|
|
|
1998-11-06 08:51:39 +08:00
|
|
|
EXTRA_DIST = \
|
2002-03-28 23:45:27 +08:00
|
|
|
AUTHORS \
|
|
|
|
COPYING \
|
|
|
|
ChangeLog \
|
|
|
|
ChangeLog.pre-1-0 \
|
|
|
|
ChangeLog.pre-1-2 \
|
2004-03-24 02:52:47 +08:00
|
|
|
ChangeLog.pre-2-0 \
|
2007-10-24 22:50:41 +08:00
|
|
|
ChangeLog.pre-2-2 \
|
|
|
|
ChangeLog.pre-2-4 \
|
2008-10-02 03:29:46 +08:00
|
|
|
ChangeLog.pre-2-6 \
|
2012-11-29 21:03:04 +08:00
|
|
|
ChangeLog.pre-git \
|
2002-03-28 23:45:27 +08:00
|
|
|
HACKING \
|
|
|
|
INSTALL \
|
2003-08-15 18:41:31 +08:00
|
|
|
LICENSE \
|
2002-03-28 23:45:27 +08:00
|
|
|
NEWS \
|
2004-04-05 08:17:57 +08:00
|
|
|
NEWS.pre-2-0 \
|
2004-12-22 09:07:11 +08:00
|
|
|
NEWS.pre-2-2 \
|
2007-10-24 22:50:41 +08:00
|
|
|
NEWS.pre-2-4 \
|
2008-10-02 03:29:46 +08:00
|
|
|
NEWS.pre-2-6 \
|
2015-11-23 00:28:39 +08:00
|
|
|
NEWS.pre-2-8 \
|
2018-04-28 08:42:32 +08:00
|
|
|
NEWS.pre-2-10 \
|
2002-03-28 23:45:27 +08:00
|
|
|
README \
|
|
|
|
README.i18n \
|
2004-12-11 07:30:37 +08:00
|
|
|
authors.dtd \
|
|
|
|
authors.xml \
|
|
|
|
authors.xsl \
|
2002-03-28 23:45:27 +08:00
|
|
|
config.h.win32 \
|
2014-08-20 23:24:57 +08:00
|
|
|
gimp-zip.in \
|
2018-03-11 06:54:54 +08:00
|
|
|
git-version.h \
|
2014-08-20 23:24:57 +08:00
|
|
|
gtk-doc.make
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2004-10-12 08:33:27 +08:00
|
|
|
|
2020-08-04 00:17:48 +08:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --with-python=force --with-javascript=force --with-lua=force
|
2004-10-12 08:33:27 +08:00
|
|
|
|
2002-11-08 01:12:17 +08:00
|
|
|
|
2006-11-09 05:42:32 +08:00
|
|
|
check-defs:
|
2007-05-06 21:12:25 +08:00
|
|
|
@$(PYTHON) $(top_srcdir)/tools/defcheck.py $(top_srcdir) || \
|
|
|
|
( echo "*** .def files inconsistent ***"; exit 1; )
|
2004-12-11 07:30:37 +08:00
|
|
|
|
|
|
|
validate-authors:
|
|
|
|
if HAVE_XMLLINT
|
2007-05-06 21:12:25 +08:00
|
|
|
@cd $(srcdir); \
|
|
|
|
$(XMLLINT) --noout --valid authors.xml || \
|
|
|
|
( echo "*** authors.xml INVALID ***"; exit 1; )
|
2004-12-11 07:30:37 +08:00
|
|
|
endif
|
|
|
|
|
2005-06-26 01:25:13 +08:00
|
|
|
all-local: AUTHORS
|
2004-12-11 07:30:37 +08:00
|
|
|
|
2006-11-09 05:42:32 +08:00
|
|
|
dist-hook: check-defs validate-authors
|
2009-07-13 19:23:35 +08: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-30 03:08:13 +08:00
|
|
|
|
2018-03-11 06:54:54 +08:00
|
|
|
generated_sources = \
|
2018-01-30 03: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-11 06:54:54 +08:00
|
|
|
BUILT_SOURCES = $(generated_sources)
|
2018-01-30 03:08:13 +08:00
|
|
|
|
2018-03-11 06:54:54 +08:00
|
|
|
CLEANFILES = $(generated_sources)
|
2018-01-30 03: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
|