Initialize the gmime for upstream
[platform/upstream/gmime.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 SUBDIRS = m4 build util gmime
6
7 if ENABLE_MONO
8 SUBDIRS += mono
9 endif
10
11 SUBDIRS += docs
12
13 SUBDIRS += tools .
14
15 # build documentation when doing distcheck
16 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
17
18 DISTCLEANFILES = iconv-detect.h gmime-$(GMIME_API_VERSION).pc config.lt doltcompile doltlibtool
19
20 EXTRA_DIST =                            \
21         PORTING                         \
22         gmime.pc.in                     \
23         gmime.spec.in                   \
24         iconv-detect.c                  \
25         zentimer.h                      \
26         gtk-doc.make
27
28 BUILD_EXTRA_DIST =                      \
29         gmime.spec
30
31 pkgconfigdir = $(libdir)/pkgconfig
32 pkgconfig_DATA = gmime-$(GMIME_API_VERSION).pc
33
34 $(pkgconfig_DATA): config.status
35
36 dist-hook: $(BUILD_EXTRA_DIST)
37         files='$(BUILD_EXTRA_DIST)'; \
38         for f in $$files; do \
39           if test -f $$f; then d=.; else d=$(srcdir); fi; \
40           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done
41
42 gmime-$(GMIME_API_VERSION).pc: gmime.pc
43         -cp gmime.pc gmime-$(GMIME_API_VERSION).pc