Fix distcheck errors.
[platform/upstream/evolution-data-server.git] / Makefile.am
1 ACLOCAL_AMFLAGS=-I m4
2
3 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --with-krb5=/usr
4
5 if ENABLE_CALENDAR
6 CALENDAR_DIR = calendar
7 endif
8
9 SUBDIRS = libedataserver libebackend servers camel addressbook $(CALENDAR_DIR) libedataserverui docs art po
10 DIST_SUBDIRS = libedataserver libebackend servers camel addressbook calendar libedataserverui docs art po
11
12 %-$(API_VERSION).pc: %.pc
13          cp $< $@
14
15 pkgconfigdir = $(libdir)/pkgconfig
16 pkgconfig_DATA = evolution-data-server-$(API_VERSION).pc
17
18 EXTRA_DIST =                                            \
19         AUTHORS                                         \
20         $(changelogs)                                   \
21         README                                          \
22         HACKING                                         \
23         MAINTAINERS                                     \
24         TODO                                            \
25         NEWS                                            \
26         marshal.mk                                      \
27         iconv-detect.c                                  \
28         intltool-merge.in                               \
29         intltool-update.in                              \
30         intltool-extract.in                             \
31         evolution-data-server-zip.in                    \
32         $(pkgconfig_DATA:-$(API_VERSION).pc=.pc.in)
33
34 DISTCLEANFILES =                                        \
35         iconv-detect.h                                  \
36         $(pkgconfig_DATA)
37
38 MAINTAINERCLEANFILES =                                  \
39         $(srcdir)/INSTALL                               \
40         $(srcdir)/aclocal.m4                            \
41         $(srcdir)/autoscan.log                          \
42         $(srcdir)/compile                               \
43         $(srcdir)/config.guess                          \
44         $(srcdir)/config.h.in                           \
45         $(srcdir)/config.sub                            \
46         $(srcdir)/configure.scan                        \
47         $(srcdir)/depcomp                               \
48         $(srcdir)/install-sh                            \
49         $(srcdir)/ltmain.sh                             \
50         $(srcdir)/missing                               \
51         $(srcdir)/mkinstalldirs                         \
52         $(srcdir)/gtk-doc.make                          \
53         $(srcdir)/m4/gtk-doc.m4                         \
54         $(srcdir)/m4/intltool.m4                        \
55         $(srcdir)/m4/libtool.m4                         \
56         $(srcdir)/m4/ltoptions.m4                       \
57         $(srcdir)/m4/ltsugar.m4                         \
58         $(srcdir)/m4/ltversion.m4                       \
59         $(srcdir)/m4/lt~obsolete.m4
60
61 # Generate a ChangeLog file from 'git log'
62 dist-hook:
63         @if test -d "$(srcdir)/.git"; \
64         then \
65                 echo Creating ChangeLog && \
66                 ( cd "$(top_srcdir)" && \
67                   echo '# Generated by Makefile. Do not edit.'; echo; \
68                   $(top_srcdir)/missing --run git log --stat \
69                   EVOLUTION_DATA_SERVER_2_30_0..) > ChangeLog.tmp \
70                 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
71                 || ( rm -f ChangeLog.tmp ; \
72                      echo Failed to generate ChangeLog >&2 ); \
73         else \
74                 echo A git clone is required to generate a ChangeLog >&2; \
75         fi
76
77 -include $(top_srcdir)/git.mk