1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
6 SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs
7 DIST_SUBDIRS = $(SUBDIRS) build
9 bin_SCRIPTS = glib-gettextize
12 -DG_LOG_DOMAIN=g_log_domain_glib \
14 -DG_DISABLE_DEPRECATED \
44 glibconfig.h.win32.in \
45 msvc_recommended_pragmas.h \
51 gmodule-export-2.0.pc.in \
52 gmodule-no-export-2.0.pc.in \
56 glib-2.0-uninstalled.pc.in \
57 gobject-2.0-uninstalled.pc.in \
58 gmodule-2.0-uninstalled.pc.in \
59 gthread-2.0-uninstalled.pc.in \
60 gmodule-no-export-2.0-uninstalled.pc.in \
61 gio-2.0-uninstalled.pc.in \
62 gio-unix-2.0-uninstalled.pc.in
65 # These may be in the builddir too
74 configexecincludedir = $(libdir)/glib-2.0/include
75 configexecinclude_DATA = glibconfig.h
78 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
80 CONFIGURE_DEPENDENCIES = acglib.m4
82 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
83 glibconfig.h: stamp-gc-h
84 @if test -f glibconfig.h; then :; \
85 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
86 stamp-gc-h: config.status
87 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
88 echo timestamp > stamp-gc-h
92 @if test -d "$(srcdir)/.git"; then \
93 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
96 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
97 (test -f $@ || echo git-log is required to generate this file >> $@)); \
100 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
101 echo A git checkout and git-log is required to generate this file >> $@); \
104 pkgconfigdir = $(libdir)/pkgconfig
105 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 gio-unix-2.0.pc
107 $(pkgconfig_DATA): config.status
109 # install mkinstalldirs for glib-gettextize's benefit
110 gettextdir = $(datadir)/glib-2.0/gettext
111 gettext_SCRIPTS = mkinstalldirs
113 # build documentation when doing distcheck
114 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
116 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h config.lt
119 if test $(srcdir) = .; then :; else \
120 rm -f $(BUILT_EXTRA_DIST); \
123 .PHONY: files release sanity snapshot ChangeLog
126 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
132 cd docs && make glib.html
136 ./sanity_check $(VERSION)
139 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
142 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
144 dist-hook: $(BUILT_EXTRA_DIST)
145 files='$(BUILT_EXTRA_DIST)'; \
146 for f in $$files; do \
147 if test -f $$f; then d=.; else d=$(srcdir); fi; \
148 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done