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
34 glibconfig.h.win32.in \
35 msvc_recommended_pragmas.h \
41 gmodule-export-2.0.pc.in \
42 gmodule-no-export-2.0.pc.in \
44 glib-2.0-uninstalled.pc.in \
45 gobject-2.0-uninstalled.pc.in \
46 gmodule-2.0-uninstalled.pc.in \
47 gthread-2.0-uninstalled.pc.in \
48 gmodule-no-export-2.0-uninstalled.pc.in
51 # These may be in the builddir too
59 configexecincludedir = $(libdir)/glib-2.0/include
60 configexecinclude_DATA = glibconfig.h
63 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
65 CONFIGURE_DEPENDENCIES = acglib.m4
67 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
68 glibconfig.h: stamp-gc-h
69 @if test -f glibconfig.h; then :; \
70 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
71 stamp-gc-h: config.status
72 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
73 echo timestamp > stamp-gc-h
75 pkgconfigdir = $(libdir)/pkgconfig
76 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
78 $(pkgconfig_DATA): config.status
80 # install mkinstalldirs for glib-gettextize's benefit
81 gettextdir = $(datadir)/glib-2.0/gettext
82 gettext_SCRIPTS = mkinstalldirs
84 # build documentation when doing distcheck
85 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
87 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
90 if test $(srcdir) = .; then :; else \
91 rm -f $(BUILT_EXTRA_DIST); \
94 .PHONY: files release sanity snapshot
97 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
103 cd docs && make glib.html
107 ./sanity_check $(VERSION)
110 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
113 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
115 dist-hook: $(BUILT_EXTRA_DIST)
116 files='$(BUILT_EXTRA_DIST)'; \
117 for f in $$files; do \
118 if test -f $$f; then d=.; else d=$(srcdir); fi; \
119 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done