1 ## Process this file with automake to produce Makefile.in
5 SUBDIRS = . m4macros glib gobject gmodule gthread docs tests build po
7 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
8 -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
20 glibconfig.h.win32.in \
27 glib-2.0-uninstalled.pc.in \
28 gobject-2.0-uninstalled.pc.in \
29 gmodule-2.0-uninstalled.pc.in \
30 gthread-2.0-uninstalled.pc.in
32 # These may be in the builddir too
38 configexecincludedir = $(libdir)/glib-2.0/include
39 #configexecinclude_DATA = glibconfig.h
41 install-exec-local: glibconfig.h
42 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
43 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
44 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
45 else $(INSTALL_DATA) glibconfig.h $$file; fi
47 CONFIGURE_DEPENDENCIES = acglib.m4
49 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
50 glibconfig.h: stamp-gc-h
51 @if test -f glibconfig.h; then :; \
52 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
53 stamp-gc-h: config.status
54 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
55 echo timestamp > stamp-gc-h
58 pkgconfigdir = $(libdir)/pkgconfig
59 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
61 $(pkgconfig_DATA): config.status
63 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
64 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
66 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
67 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
69 .PHONY: files release sanity snapshot
72 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
78 cd docs && make glib.html
82 ./sanity_check $(VERSION)
85 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
88 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
90 dist-hook: $(BUILT_EXTRA_DIST)
91 cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
92 files='$(BUILT_EXTRA_DIST) INSTALL README'; \
93 for f in $$files; do \
94 if test -f $$f; then d=.; else d=$(srcdir); fi; \
95 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done