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
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
105 # This is a version of the automake-1.4 distcheck rule modified
106 # to pass --enable-gtk-doc to ./configure
110 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
111 mkdir $(distdir)/=build
112 mkdir $(distdir)/=inst
113 dc_install_base=`cd $(distdir)/=inst && pwd`; \
114 cd $(distdir)/=build \
115 && ../configure --srcdir=.. --prefix=$$dc_install_base --enable-gtk-doc \
116 && $(MAKE) $(AM_MAKEFLAGS) \
117 && $(MAKE) $(AM_MAKEFLAGS) dvi \
118 && $(MAKE) $(AM_MAKEFLAGS) check \
119 && $(MAKE) $(AM_MAKEFLAGS) install \
120 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
121 && $(MAKE) $(AM_MAKEFLAGS) dist
123 @banner="$(distdir).tar.gz is ready for distribution"; \
124 dashes=`echo "$$banner" | sed s/./=/g`; \