1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
6 SUBDIRS = . m4macros glib gobject gmodule gthread tests build po docs
8 bin_SCRIPTS = glib-gettextize
11 -DG_LOG_DOMAIN=g_log_domain_glib \
13 -DG_DISABLE_DEPRECATED \
38 glibconfig.h.win32.in \
39 msvc_recommended_pragmas.h \
45 gmodule-export-2.0.pc.in \
46 gmodule-no-export-2.0.pc.in \
48 glib-2.0-uninstalled.pc.in \
49 gobject-2.0-uninstalled.pc.in \
50 gmodule-2.0-uninstalled.pc.in \
51 gthread-2.0-uninstalled.pc.in \
52 gmodule-no-export-2.0-uninstalled.pc.in
55 # These may be in the builddir too
63 configexecincludedir = $(libdir)/glib-2.0/include
64 configexecinclude_DATA = glibconfig.h
67 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
69 CONFIGURE_DEPENDENCIES = acglib.m4
71 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
72 glibconfig.h: stamp-gc-h
73 @if test -f glibconfig.h; then :; \
74 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
75 stamp-gc-h: config.status
76 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
77 echo timestamp > stamp-gc-h
79 pkgconfigdir = $(libdir)/pkgconfig
80 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
82 $(pkgconfig_DATA): config.status
84 # install mkinstalldirs for glib-gettextize's benefit
85 gettextdir = $(datadir)/glib-2.0/gettext
86 gettext_SCRIPTS = mkinstalldirs
88 # build documentation when doing distcheck
89 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
91 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
94 if test $(srcdir) = .; then :; else \
95 rm -f $(BUILT_EXTRA_DIST); \
98 .PHONY: files release sanity snapshot
101 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
107 cd docs && make glib.html
111 ./sanity_check $(VERSION)
114 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
117 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
119 dist-hook: $(BUILT_EXTRA_DIST)
120 files='$(BUILT_EXTRA_DIST)'; \
121 for f in $$files; do \
122 if test -f $$f; then d=.; else d=$(srcdir); fi; \
123 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done