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 \
41 glibconfig.h.win32.in \
42 msvc_recommended_pragmas.h \
48 gmodule-export-2.0.pc.in \
49 gmodule-no-export-2.0.pc.in \
53 glib-2.0-uninstalled.pc.in \
54 gobject-2.0-uninstalled.pc.in \
55 gmodule-2.0-uninstalled.pc.in \
56 gthread-2.0-uninstalled.pc.in \
57 gmodule-no-export-2.0-uninstalled.pc.in \
58 gio-2.0-uninstalled.pc.in \
59 gio-unix-2.0-uninstalled.pc.in
62 # These may be in the builddir too
70 configexecincludedir = $(libdir)/glib-2.0/include
71 configexecinclude_DATA = glibconfig.h
74 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
76 CONFIGURE_DEPENDENCIES = acglib.m4
78 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
79 glibconfig.h: stamp-gc-h
80 @if test -f glibconfig.h; then :; \
81 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
82 stamp-gc-h: config.status
83 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
84 echo timestamp > stamp-gc-h
86 pkgconfigdir = $(libdir)/pkgconfig
87 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
89 $(pkgconfig_DATA): config.status
91 # install mkinstalldirs for glib-gettextize's benefit
92 gettextdir = $(datadir)/glib-2.0/gettext
93 gettext_SCRIPTS = mkinstalldirs
95 # build documentation when doing distcheck
96 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
98 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h config.lt
101 if test $(srcdir) = .; then :; else \
102 rm -f $(BUILT_EXTRA_DIST); \
105 .PHONY: files release sanity snapshot
108 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
114 cd docs && make glib.html
118 ./sanity_check $(VERSION)
121 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
124 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
126 dist-hook: $(BUILT_EXTRA_DIST)
127 files='$(BUILT_EXTRA_DIST)'; \
128 for f in $$files; do \
129 if test -f $$f; then d=.; else d=$(srcdir); fi; \
130 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done