1 ## Process this file with automake to produce Makefile.in
5 SUBDIRS = . m4macros glib gobject gmodule gthread tests build po docs
7 bin_SCRIPTS = glib-gettextize
9 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
10 -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
24 glibconfig.h.win32.in \
25 msvc_recommended_pragmas.h \
32 glib-2.0-uninstalled.pc.in \
33 gobject-2.0-uninstalled.pc.in \
34 gmodule-2.0-uninstalled.pc.in \
35 gthread-2.0-uninstalled.pc.in \
38 # These may be in the builddir too
46 configexecincludedir = $(libdir)/glib-2.0/include
47 #configexecinclude_DATA = glibconfig.h
49 install-exec-local: glibconfig.h
50 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
51 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
52 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
53 else $(INSTALL_DATA) glibconfig.h $$file; fi
56 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
58 CONFIGURE_DEPENDENCIES = acglib.m4
60 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
61 glibconfig.h: stamp-gc-h
62 @if test -f glibconfig.h; then :; \
63 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
64 stamp-gc-h: config.status
65 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
66 echo timestamp > stamp-gc-h
68 pkgconfigdir = $(libdir)/pkgconfig
69 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
71 $(pkgconfig_DATA): config.status
73 # build documentation when doing distcheck
74 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
76 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
79 if test $(srcdir) = .; then :; else \
80 rm -f $(BUILT_EXTRA_DIST); \
83 .PHONY: files release sanity snapshot
86 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
92 cd docs && make glib.html
96 ./sanity_check $(VERSION)
99 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
102 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
104 dist-hook: $(BUILT_EXTRA_DIST)
105 files='$(BUILT_EXTRA_DIST)'; \
106 for f in $$files; do \
107 if test -f $$f; then d=.; else d=$(srcdir); fi; \
108 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done