app: explicitly clear GUI when halting a filter tool
[gimp.git] / Makefile.am
blob5321a0c7d548c76b5c136da89f601be845b5a1ae
1 ## Process this file with automake to produce Makefile.in
3 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
5 if WITH_PDBGEN
6 PDB = pdb
7 endif
9 SUBDIRS = \
10         m4macros                \
11         cursors                 \
12         themes                  \
13         po                      \
14         po-libgimp              \
15         po-plug-ins             \
16 ##      po-python               \
17         po-script-fu            \
18         po-tips                 \
19         po-windows-installer    \
20         data                    \
21         desktop                 \
22         menus                   \
23         libgimpbase             \
24         tools                   \
25         $(PDB)                  \
26         icons                   \
27         libgimpcolor            \
28         libgimpmath             \
29         libgimpconfig           \
30         libgimpmodule           \
31         libgimpthumb            \
32         libgimpwidgets          \
33         libgimp                 \
34         app                     \
35         app-tools               \
36         $(GIMP_MODULES)         \
37         $(GIMP_PLUGINS)         \
38         etc                     \
39 ##      devel-docs              \
40         docs                    \
41         build
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = \
45         gimp-@GIMP_PKGCONFIG_VERSION@.pc        \
46         gimpthumb-@GIMP_PKGCONFIG_VERSION@.pc   \
47         gimpui-@GIMP_PKGCONFIG_VERSION@.pc
50 AUTHORS: authors.xml authors.xsl
51 if HAVE_XSLTPROC
52         $(XSLTPROC) -o $(@) $(top_srcdir)/authors.xsl $< || rm -f $(@)
53 endif
55 authors.md: authors.xml authors4gimp-web.xsl
56 if HAVE_XSLTPROC
57         $(XSLTPROC) --stringparam today "`date --iso-8601=seconds`" -o $(@) $(top_srcdir)/authors4gimp-web.xsl $< || rm -f $(@)
58 endif
60 EXTRA_DIST = \
61         AUTHORS                 \
62         COPYING                 \
63         ChangeLog               \
64         ChangeLog.pre-1-0       \
65         ChangeLog.pre-1-2       \
66         ChangeLog.pre-2-0       \
67         ChangeLog.pre-2-2       \
68         ChangeLog.pre-2-4       \
69         ChangeLog.pre-2-6       \
70         ChangeLog.pre-git       \
71         HACKING                 \
72         INSTALL                 \
73         LICENSE                 \
74         NEWS                    \
75         NEWS.pre-2-0            \
76         NEWS.pre-2-2            \
77         NEWS.pre-2-4            \
78         NEWS.pre-2-6            \
79         NEWS.pre-2-8            \
80         NEWS.pre-2-10           \
81         README                  \
82         README.i18n             \
83         authors.dtd             \
84         authors.xml             \
85         authors.xsl             \
86         config.h.win32          \
87         gimp-zip.in             \
88         git-version.h           \
89         gtk-doc.make
92 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
95 check-defs:
96         @$(PYTHON) $(top_srcdir)/tools/defcheck.py $(top_srcdir) || \
97           ( echo "*** .def files inconsistent ***"; exit 1; )
99 validate-authors:
100 if HAVE_XMLLINT
101         @cd $(srcdir); \
102         $(XMLLINT) --noout --valid authors.xml || \
103           ( echo "*** authors.xml INVALID ***"; exit 1; )
104 endif
106 all-local: AUTHORS
108 dist-hook: check-defs validate-authors
112 CHANGELOG_START = 74424325abb54620b370f2595445b2b2a19fe5e7
114 ChangeLog: $(srcdir)/ChangeLog $(srcdir)/ChangeLog.pre-git
115 $(srcdir)/ChangeLog:
116         @echo Creating $@ based on git log
117         @if test -d "$(srcdir)/.git"; then \
118           (GIT_DIR=$(top_srcdir)/.git ./missing --run \
119            git log $(CHANGELOG_START)^.. --stat) | fmt --split-only > $@.tmp \
120           && mv -f $@.tmp $@ && echo Appending ChangeLog.pre-git && cat ChangeLog.pre-git >> $@ \
121           || ($(RM) $@.tmp; \
122               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
123               (test -f $@ || echo git-log is required to generate this file >> $@)); \
124         else \
125           test -f $@ || \
126           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
127           echo A git checkout and git-log is required to generate this file >> $@); \
128         fi
129 .PHONY: $(srcdir)/ChangeLog
131 generated_sources = \
132         git-version.h
134 # Build git-version.h before anything in the subdirs as this is needed
135 # in the about and debug dialog (app/) and in the debug tool (tools/).
136 BUILT_SOURCES = $(generated_sources)
138 CLEANFILES = $(generated_sources)
140 # If git is available, always check if git-version.h should be
141 # updated. If git is not available, don't do anything if git-version.h
142 # already exists because then we are probably working with a tarball
143 # in which case the git-version.h we ship is correct.
144 git-version.h: update-git-version-header
145         @if test -e "$(top_srcdir)/.git"; then \
146           git_version="`git --git-dir=$(top_srcdir)/.git describe --always`"; \
147           git_version_abbrev="`git --git-dir=$(top_srcdir)/.git rev-parse --short HEAD`"; \
148           git_last_commit_year="`git --git-dir=$(top_srcdir)/.git log -n1 --reverse --pretty=%ci | cut -b 1-4`"; \
149         elif test ! -f "$@"; then \
150           git_version="Unknown, shouldn't happen"; \
151           git_version_abbrev="$$git_version"; \
152           git_last_commit_timestamp=-1; \
153           git_last_commit_year="`date -u '+%Y'`"; \
154         fi; \
155         if test -n "$$git_version"; then \
156           echo "#ifndef __GIT_VERSION_H__" > "$@.tmp"; \
157           echo "#define __GIT_VERSION_H__" >> "$@.tmp"; \
158           echo "#define GIMP_GIT_VERSION \"$$git_version\"" >> "$@.tmp"; \
159           echo "#define GIMP_GIT_VERSION_ABBREV \"$$git_version_abbrev\"" >> "$@.tmp"; \
160           echo "#define GIMP_GIT_LAST_COMMIT_YEAR \"$$git_last_commit_year\"" >> "$@.tmp"; \
161           echo "#endif /* __GIT_VERSION_H__ */" >> "$@.tmp"; \
162         fi
163         @if ( test -f "$@.tmp" && test -f "$@" && cmp "$@.tmp" "$@" > /dev/null ); then \
164           rm -f "$@.tmp"; \
165         elif test -f "$@.tmp"; then \
166           mv "$@.tmp" "$@"; \
167           echo "  git HEAD changed: $@ regenerated"; \
168         fi
170 .PHONY: update-git-version-header