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 \
31 gmodule-export-2.0.pc.in \
32 gmodule-no-export-2.0.pc.in \
34 glib-2.0-uninstalled.pc.in \
35 gobject-2.0-uninstalled.pc.in \
36 gmodule-2.0-uninstalled.pc.in \
37 gthread-2.0-uninstalled.pc.in
39 # These may be in the builddir too
47 configexecincludedir = $(libdir)/glib-2.0/include
48 #configexecinclude_DATA = glibconfig.h
50 install-exec-local: glibconfig.h
51 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
52 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
53 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
54 else $(INSTALL_DATA) glibconfig.h $$file; fi
57 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
59 CONFIGURE_DEPENDENCIES = acglib.m4
61 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
62 glibconfig.h: stamp-gc-h
63 @if test -f glibconfig.h; then :; \
64 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
65 stamp-gc-h: config.status
66 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
67 echo timestamp > stamp-gc-h
69 pkgconfigdir = $(libdir)/pkgconfig
70 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc
72 $(pkgconfig_DATA): config.status
74 # install mkinstalldirs for glib-gettextize's benefit
75 gettextdir = $(datadir)/glib-2.0/gettext
76 gettext_SCRIPTS = mkinstalldirs
78 # build documentation when doing distcheck
79 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
81 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
84 if test $(srcdir) = .; then :; else \
85 rm -f $(BUILT_EXTRA_DIST); \
88 .PHONY: files release sanity snapshot
91 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
97 cd docs && make glib.html
101 ./sanity_check $(VERSION)
104 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
107 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
109 dist-hook: $(BUILT_EXTRA_DIST)
110 files='$(BUILT_EXTRA_DIST)'; \
111 for f in $$files; do \
112 if test -f $$f; then d=.; else d=$(srcdir); fi; \
113 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done