Updated Slovenian translation
[gegl.git] / Makefile.am
blob54ae7de46d577171c4e754c434799bf41c64a0ad
1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
3 # The libs directory needs to be before anything which can depend on its
4 # libraries, otherwise any potentially rebuilt libs won't be picked up until
5 # the next run of make.
6 SUBDIRS=\
7         libs \
8         opencl \
9         gegl \
10         libs/npd \
11         seamless-clone \
12         operations \
13         bin \
14         tools \
15         examples \
16         tests \
17         perf \
18         po
20 if ENABLE_DOCS
21 SUBDIRS+= docs
22 endif
24 pkgconfigdir = $(libdir)/pkgconfig
25 pkgconfig_DATA = gegl-$(GEGL_API_VERSION).pc
27 built_dist_files = README
29 EXTRA_DIST =                    \
30         $(built_dist_files)     \
31         autogen.sh              \
32         gegl-uninstalled.pc.in  \
33         m4/introspection.m4     \
34         gegl.pc.in
36 # DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
38 DISTCLEANFILES = \
39         $(built_dist_files)
41 if HAVE_W3M
42 dist-check-w3m:
44 README: all docs/index.html
45         $(W3M) -cols 72 -dump docs/index.html > $@
46 else
47 dist-check-w3m:
48         @echo "*** w3m must be available in order to make dist"
49         @false
50 endif
52 dist-hook: dist-check-w3m
54 website: all
55         $(MAKE) -C docs website
58 ### ChangeLog generation
60 CHANGELOG_START = 5e2cc2146486ce0c1ebc0cbf68770dafafcb123f
62 ChangeLog: $(srcdir)/ChangeLog
63 $(srcdir)/ChangeLog:
64         @echo Creating $@
65         @if test -d "$(srcdir)/.git"; then \
66           (GIT_DIR=$(top_srcdir)/.git ./missing --run \
67            git log $(CHANGELOG_START)^.. --stat) | fmt --split-only > $@.tmp \
68           && mv -f $@.tmp $@ \
69           || ($(RM) $@.tmp; \
70               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
71               (test -f $@ || echo git-log is required to generate this file >> $@)); \
72         else \
73           test -f $@ || \
74           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
75           echo A git checkout and git-log is required to generate this file >> $@); \
76         fi
77 .PHONY: $(srcdir)/ChangeLog