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
26 glibconfig.h.win32.in \
27 msvc_recommended_pragmas.h \
33 gmodule-export-2.0.pc.in \
34 gmodule-no-export-2.0.pc.in \
36 glib-2.0-uninstalled.pc.in \
37 gobject-2.0-uninstalled.pc.in \
38 gmodule-2.0-uninstalled.pc.in \
39 gthread-2.0-uninstalled.pc.in
41 # These may be in the builddir too
49 configexecincludedir = $(libdir)/glib-2.0/include
50 #configexecinclude_DATA = glibconfig.h
52 install-exec-local: glibconfig.h
53 $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
54 file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
55 if test -r $$file && cmp -s glibconfig.h $$file; then :; \
56 else $(INSTALL_DATA) glibconfig.h $$file; fi
59 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
61 CONFIGURE_DEPENDENCIES = acglib.m4
63 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
64 glibconfig.h: stamp-gc-h
65 @if test -f glibconfig.h; then :; \
66 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
67 stamp-gc-h: config.status
68 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
69 echo timestamp > stamp-gc-h
71 pkgconfigdir = $(libdir)/pkgconfig
72 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
74 $(pkgconfig_DATA): config.status
76 # install mkinstalldirs for glib-gettextize's benefit
77 gettextdir = $(datadir)/glib-2.0/gettext
78 gettext_SCRIPTS = mkinstalldirs
80 # build documentation when doing distcheck
81 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
83 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
86 if test $(srcdir) = .; then :; else \
87 rm -f $(BUILT_EXTRA_DIST); \
90 .PHONY: files release sanity snapshot
93 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
99 cd docs && make glib.html
103 ./sanity_check $(VERSION)
106 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
109 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
111 dist-hook: $(BUILT_EXTRA_DIST)
112 files='$(BUILT_EXTRA_DIST)'; \
113 for f in $$files; do \
114 if test -f $$f; then d=.; else d=$(srcdir); fi; \
115 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done