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