1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
6 SUBDIRS = . m4macros glib gobject gmodule gthread tests build po docs
8 bin_SCRIPTS = glib-gettextize
10 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
11 -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
35 glibconfig.h.win32.in \
36 msvc_recommended_pragmas.h \
42 gmodule-export-2.0.pc.in \
43 gmodule-no-export-2.0.pc.in \
45 glib-2.0-uninstalled.pc.in \
46 gobject-2.0-uninstalled.pc.in \
47 gmodule-2.0-uninstalled.pc.in \
48 gthread-2.0-uninstalled.pc.in \
49 gmodule-no-export-2.0-uninstalled.pc.in
52 # These may be in the builddir too
60 configexecincludedir = $(libdir)/glib-2.0/include
61 configexecinclude_DATA = glibconfig.h
64 rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
66 CONFIGURE_DEPENDENCIES = acglib.m4
68 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
69 glibconfig.h: stamp-gc-h
70 @if test -f glibconfig.h; then :; \
71 else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
72 stamp-gc-h: config.status
73 cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
74 echo timestamp > stamp-gc-h
76 pkgconfigdir = $(libdir)/pkgconfig
77 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
79 $(pkgconfig_DATA): config.status
81 # install mkinstalldirs for glib-gettextize's benefit
82 gettextdir = $(datadir)/glib-2.0/gettext
83 gettext_SCRIPTS = mkinstalldirs
85 # build documentation when doing distcheck
86 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
88 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
91 if test $(srcdir) = .; then :; else \
92 rm -f $(BUILT_EXTRA_DIST); \
95 .PHONY: files release sanity snapshot
98 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
104 cd docs && make glib.html
108 ./sanity_check $(VERSION)
111 $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
114 $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
116 dist-hook: $(BUILT_EXTRA_DIST)
117 files='$(BUILT_EXTRA_DIST)'; \
118 for f in $$files; do \
119 if test -f $$f; then d=.; else d=$(srcdir); fi; \
120 rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done