]> www.fi.muni.cz Git - evince.git/blob - Makefile.am
[build] Add --disable-tests to disable tests during distcheck
[evince.git] / Makefile.am
1 SUBDIRS = \
2         cut-n-paste \
3         data \
4         libdocument \
5         backend \
6         libview \
7         libmisc \
8         properties \
9         shell \
10         po \
11         help
12
13 if ENABLE_TESTS
14 SUBDIRS += test
15 endif
16
17 if ENABLE_THUMBNAILER
18 SUBDIRS += thumbnailer
19 endif
20
21 if ENABLE_PREVIEWER
22 SUBDIRS += previewer
23 endif
24
25 NULL =
26
27 pkgconfigdir = $(libdir)/pkgconfig
28 pkgconfig_DATA = \
29         evince-document-$(EV_API_VERSION).pc \
30         evince-view-$(EV_API_VERSION).pc \
31         $(NULL)
32
33 headerdir = $(includedir)/evince/$(EV_API_VERSION)
34 header_DATA = \
35         evince-document.h \
36         evince-view.h \
37         $(NULL)
38
39 # Applications 
40
41 intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in
42
43 EXTRA_DIST = \
44         $(intltool_extra) \
45         $(header_DATA) \
46         autogen.sh \
47         gnome-doc-utils.make \
48         MAINTAINERS
49
50 DISTCLEANFILES =                \
51         gnome-doc-utils.make    \
52         intltool-extract        \
53         intltool-merge          \
54         intltool-update
55
56 ACLOCAL_AMFLAGS = -I m4
57
58 DISTCHECK_CONFIGURE_FLAGS = --disable-schemas-install --disable-scrollkeeper --enable-gtk-doc --disable-nautilus --disable-tests
59
60 # Ignore scrollkeeper issues for now.  @#*$& scrollkeeper
61 distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper | grep -v /share/gnome/help/ | grep -v \.omf
62
63 distclean-local:
64         if test "$(srcdir)" = "."; then :; else \
65                 rm -f ChangeLog; \
66         fi
67
68 ChangeLog:
69         @echo Creating $@
70         @if test -d "$(srcdir)/.git"; then \
71           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \
72           && mv -f $@.tmp $@ \
73           || ($(RM) $@.tmp; \
74               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
75               (test -f $@ || echo git log is required to generate this file >> $@)); \
76         else \
77           test -f $@ || \
78           (echo A git checkout and git log is required to generate ChangeLog >&2 && \
79           echo A git checkout and git log is required to generate this file >> $@); \
80         fi
81
82 .PHONY: ChangeLog