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
10 DIST_SUBDIRS = $(SUBDIRS) build
12 bin_SCRIPTS = glib-gettextize
15 TESTS += check-abis.sh
19 -DG_LOG_DOMAIN=g_log_domain_glib \
21 -DG_DISABLE_DEPRECATED \
49 msvc_recommended_pragmas.h \
55 gmodule-export-2.0.pc.in \
56 gmodule-no-export-2.0.pc.in \
60 gio-windows-2.0.pc.in \
66 # These may be in the builddir too
74 CONFIGURE_DEPENDENCIES = acglib.m4
77 $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
78 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
81 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
82 (test -f $@ || echo git-log is required to generate this file >> $@)); \
85 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
86 echo A git checkout and git-log is required to generate this file >> $@); \
89 pkgconfigdir = $(libdir)/pkgconfig
90 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 pkgconfig_DATA += gio-unix-2.0.pc
97 pkgconfig_DATA += gio-windows-2.0.pc
100 $(pkgconfig_DATA): config.status
102 # build documentation when doing distcheck
103 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
105 DISTCLEANFILES += config.lt
107 distclean-local: lcov-clean
108 if test $(srcdir) = .; then :; else \
109 rm -f $(BUILT_EXTRA_DIST); \
112 .PHONY: files release sanity snapshot ChangeLog
115 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
121 cd docs && make glib.html
125 ./sanity_check $(VERSION)
128 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
131 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
133 dist-hook: $(BUILT_EXTRA_DIST)
134 files='$(BUILT_EXTRA_DIST)'; \
135 for f in $$files; do \
136 if test -f $$f; then d=.; else d=$(srcdir); fi; \
137 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done