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
23 glibconfig.h.win32.in \
30 glib-2.0-uninstalled.pc.in \
31 gobject-2.0-uninstalled.pc.in \
32 gmodule-2.0-uninstalled.pc.in \
33 gthread-2.0-uninstalled.pc.in
35 # These may be in the builddir too
42 configexecincludedir = $(libdir)/glib-2.0/include
43 #configexecinclude_DATA = glibconfig.h
45 install-exec-local: glibconfig.h
46 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
47 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
48 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
49 else $(INSTALL_DATA) glibconfig.h $$file; fi
51 CONFIGURE_DEPENDENCIES = acglib.m4
53 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
54 glibconfig.h: stamp-gc-h
55 @if test -f glibconfig.h; then :; \
56 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
57 stamp-gc-h: config.status
58 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
59 echo timestamp > stamp-gc-h
62 pkgconfigdir = $(libdir)/pkgconfig
63 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
65 $(pkgconfig_DATA): config.status
67 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
68 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
70 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
71 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
73 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
75 .PHONY: files release sanity snapshot
78 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
84 cd docs && make glib.html
88 ./sanity_check $(VERSION)
91 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
94 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
96 dist-hook: $(BUILT_EXTRA_DIST)
97 cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
98 files='$(BUILT_EXTRA_DIST) INSTALL README'; \
99 for f in $$files; do \
100 if test -f $$f; then d=.; else d=$(srcdir); fi; \
101 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done