gmain: Remove dispatching source stack
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
3
4 # http://people.gnome.org/~walters/docs/build-api.txt
5 .buildapi-allow-builddir:
6
7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
8
9 SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests
10 DIST_SUBDIRS = $(SUBDIRS) build
11
12 bin_SCRIPTS = glib-gettextize
13
14 if OS_LINUX
15 TESTS += check-abis.sh
16 endif
17
18 AM_CPPFLAGS =                                   \
19         -DG_LOG_DOMAIN=g_log_domain_glib        \
20         @GLIB_DEBUG_FLAGS@                      \
21         -DG_DISABLE_DEPRECATED                  \
22         -DGLIB_COMPILATION
23
24 EXTRA_DIST +=                   \
25         ChangeLog.pre-2-20      \
26         ChangeLog.pre-2-18      \
27         ChangeLog.pre-2-16      \
28         ChangeLog.pre-2-14      \
29         ChangeLog.pre-2-12      \
30         ChangeLog.pre-2-10      \
31         ChangeLog.pre-2-8       \
32         ChangeLog.pre-2-6       \
33         ChangeLog.pre-2-4       \
34         ChangeLog.pre-2-2       \
35         ChangeLog.pre-2-0       \
36         ChangeLog.pre-1-2       \
37         glib-zip.in             \
38         NEWS.pre-1-3            \
39         acglib.m4               \
40         sanity_check            \
41         README.commits          \
42         README.in               \
43         INSTALL.in              \
44         README.win32            \
45         HACKING                 \
46         autogen.sh              \
47         glib.mk                 \
48         glib-tap.mk             \
49         tap-test                \
50         makefile.msc            \
51         msvc_recommended_pragmas.h \
52         config.h.win32.in       \
53         po/po2tbl.sed.in        \
54         glib-2.0.pc.in          \
55         gobject-2.0.pc.in       \
56         gmodule-2.0.pc.in       \
57         gmodule-export-2.0.pc.in        \
58         gmodule-no-export-2.0.pc.in     \
59         gthread-2.0.pc.in       \
60         gio-2.0.pc.in           \
61         gio-unix-2.0.pc.in      \
62         gio-windows-2.0.pc.in   \
63         check-abis.sh           \
64         gtk-doc.make            \
65         $(NULL)
66
67
68 # These may be in the builddir too
69 BUILT_EXTRA_DIST +=             \
70         README                  \
71         INSTALL                 \
72         ChangeLog               \
73         config.h.win32          \
74         $(NULL)
75
76 CONFIGURE_DEPENDENCIES = acglib.m4
77
78 ChangeLog:
79         $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
80           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
81           && mv -f $@.tmp $@ \
82           || ($(RM) $@.tmp; \
83               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
84               (test -f $@ || echo git-log is required to generate this file >> $@)); \
85         else \
86           test -f $@ || \
87           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
88           echo A git checkout and git-log is required to generate this file >> $@); \
89         fi
90
91 pkgconfigdir = $(libdir)/pkgconfig
92 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc
93
94 if OS_UNIX
95 pkgconfig_DATA += gio-unix-2.0.pc
96 endif
97
98 if OS_WIN32
99 pkgconfig_DATA += gio-windows-2.0.pc
100 endif
101
102 $(pkgconfig_DATA): config.status
103
104 # build documentation when doing distcheck
105 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
106
107 DISTCLEANFILES += config.lt
108
109 distclean-local: lcov-clean
110         if test $(srcdir) = .; then :; else \
111             rm -f $(BUILT_EXTRA_DIST); \
112         fi
113
114 .PHONY: files release sanity snapshot ChangeLog
115
116 files:
117         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
118           echo $$p; \
119         done
120
121 release:
122         rm -rf .deps */.deps
123         cd docs && make glib.html
124         $(MAKE) distcheck
125
126 sanity:
127         ./sanity_check $(VERSION)
128
129 snapshot:
130         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
131
132 snapcheck:
133         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
134
135 dist-hook: $(BUILT_EXTRA_DIST)
136         files='$(BUILT_EXTRA_DIST)'; \
137         for f in $$files; do \
138           if test -f $$f; then d=.; else d=$(srcdir); fi; \
139           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done