1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/glib.mk
4 # http://people.gnome.org/~walters/docs/build-api.txt
5 .buildapi-allow-builddir:
7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
9 SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests subprojects
10 DIST_SUBDIRS = $(SUBDIRS) build win32
12 bin_SCRIPTS = glib-gettextize
15 TESTS += check-abis.sh
19 -DG_LOG_DOMAIN=g_log_domain_glib \
21 -DG_DISABLE_DEPRECATED \
52 msvc_recommended_pragmas.h \
58 gmodule-export-2.0.pc.in \
59 gmodule-no-export-2.0.pc.in \
63 gio-windows-2.0.pc.in \
72 docs/reference/gio/meson.build \
73 docs/reference/gio/xml/gtkdocentities.ent.in \
74 docs/reference/gio/xml/meson.build \
75 docs/reference/glib/meson.build \
76 docs/reference/glib/xml/gtkdocentities.ent.in \
77 docs/reference/glib/xml/meson.build \
78 docs/reference/gobject/meson.build \
79 docs/reference/gobject/xml/gtkdocentities.ent.in \
80 docs/reference/gobject/xml/meson.build \
82 gio/gdbus-2.0/codegen/meson.build \
83 gio/inotify/meson.build \
84 gio/kqueue/meson.build \
86 gio/tests/meson.build \
87 gio/tests/gengiotypefuncs.py \
88 gio/tests/modules/meson.build \
89 gio/tests/gdbus-object-manager-example/meson.build \
90 gio/tests/de/LC_MESSAGES/meson.build \
91 gio/win32/meson.build \
92 gio/xdgmime/meson.build \
93 glib/glibconfig.h.in \
94 glib/gnulib/meson.build \
95 glib/libcharset/meson.build \
97 glib/pcre/meson.build \
98 glib/tests/meson.build \
100 gobject/meson.build \
101 gobject/tests/meson.build \
102 gthread/meson.build \
104 tests/refcount/meson.build \
106 tests/gobject/meson.build \
109 EXTRA_DIST += $(meson_build_files)
111 # These may be in the builddir too
112 BUILT_EXTRA_DIST += \
119 CONFIGURE_DEPENDENCIES = acglib.m4
122 $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
123 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
126 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
127 (test -f $@ || echo git-log is required to generate this file >> $@)); \
130 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
131 echo A git checkout and git-log is required to generate this file >> $@); \
134 pkgconfigdir = $(libdir)/pkgconfig
135 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
138 pkgconfig_DATA += gio-unix-2.0.pc
142 pkgconfig_DATA += gio-windows-2.0.pc
145 $(pkgconfig_DATA): config.status
147 # Install Valgrind suppression file
148 valgrinddir = $(datadir)/glib-2.0/valgrind
149 dist_valgrind_DATA = glib.supp
151 # build documentation when doing distcheck
152 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
154 DISTCLEANFILES += config.lt
156 distclean-local: lcov-clean
157 if test $(srcdir) = .; then :; else \
158 rm -f $(BUILT_EXTRA_DIST); \
161 .PHONY: files release sanity snapshot ChangeLog
164 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
170 cd docs && make glib.html
174 ./sanity_check $(VERSION)
177 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
180 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
182 dist-hook: $(BUILT_EXTRA_DIST)
183 files='$(BUILT_EXTRA_DIST)'; \
184 for f in $$files; do \
185 if test -f $$f; then d=.; else d=$(srcdir); fi; \
186 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done