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
25 glibconfig.h.win32.in \
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
37 # These may be in the builddir too
44 configexecincludedir = $(libdir)/glib-2.0/include
45 #configexecinclude_DATA = glibconfig.h
47 install-exec-local: glibconfig.h
48 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
49 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
50 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
51 else $(INSTALL_DATA) glibconfig.h $$file; fi
53 CONFIGURE_DEPENDENCIES = acglib.m4
55 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
56 glibconfig.h: stamp-gc-h
57 @if test -f glibconfig.h; then :; \
58 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
59 stamp-gc-h: config.status
60 CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
61 echo timestamp > stamp-gc-h
64 pkgconfigdir = $(libdir)/pkgconfig
65 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
67 $(pkgconfig_DATA): config.status
69 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
70 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
72 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
73 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
75 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
77 .PHONY: files release sanity snapshot
80 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
86 cd docs && make glib.html
90 ./sanity_check $(VERSION)
93 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
96 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
98 dist-hook: $(BUILT_EXTRA_DIST)
99 cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
100 files='$(BUILT_EXTRA_DIST) INSTALL README'; \
101 for f in $$files; do \
102 if test -f $$f; then d=.; else d=$(srcdir); fi; \
103 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done