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 \
40 glibconfig.h.win32.in \
41 msvc_recommended_pragmas.h \
47 gmodule-export-2.0.pc.in \
48 gmodule-no-export-2.0.pc.in \
52 glib-2.0-uninstalled.pc.in \
53 gobject-2.0-uninstalled.pc.in \
54 gmodule-2.0-uninstalled.pc.in \
55 gthread-2.0-uninstalled.pc.in \
56 gmodule-no-export-2.0-uninstalled.pc.in \
57 gio-2.0-uninstalled.pc.in \
58 gio-unix-2.0-uninstalled.pc.in
61 # These may be in the builddir too
69 configexecincludedir = $(libdir)/glib-2.0/include
70 configexecinclude_DATA = glibconfig.h
73 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
75 CONFIGURE_DEPENDENCIES = acglib.m4
77 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
78 glibconfig.h: stamp-gc-h
79 @if test -f glibconfig.h; then :; \
80 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
81 stamp-gc-h: config.status
82 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
83 echo timestamp > stamp-gc-h
85 pkgconfigdir = $(libdir)/pkgconfig
86 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
88 $(pkgconfig_DATA): config.status
90 # install mkinstalldirs for glib-gettextize's benefit
91 gettextdir = $(datadir)/glib-2.0/gettext
92 gettext_SCRIPTS = mkinstalldirs
94 # build documentation when doing distcheck
95 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
97 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
100 if test $(srcdir) = .; then :; else \
101 rm -f $(BUILT_EXTRA_DIST); \
104 .PHONY: files release sanity snapshot
107 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
113 cd docs && make glib.html
117 ./sanity_check $(VERSION)
120 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
123 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
125 dist-hook: $(BUILT_EXTRA_DIST)
126 files='$(BUILT_EXTRA_DIST)'; \
127 for f in $$files; do \
128 if test -f $$f; then d=.; else d=$(srcdir); fi; \
129 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done