glib/gtester.c:Use g_spawn_async_with_pipes()
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.7
4
5 SUBDIRS = . m4macros glib gobject gmodule gthread tests build po docs
6
7 bin_SCRIPTS = glib-gettextize
8
9 INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
10         -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
11
12 EXTRA_DIST =                    \
13         ChangeLog.pre-2-14      \
14         ChangeLog.pre-2-12      \
15         ChangeLog.pre-2-10      \
16         ChangeLog.pre-2-8       \
17         ChangeLog.pre-2-6       \
18         ChangeLog.pre-2-4       \
19         ChangeLog.pre-2-2       \
20         ChangeLog.pre-2-0       \
21         ChangeLog.pre-1-2       \
22         glib-zip.in             \
23         NEWS.pre-1-3            \
24         acglib.m4               \
25         sanity_check            \
26         README.in               \
27         INSTALL.in              \
28         README.win32            \
29         HACKING                 \
30         MAINTAINERS             \
31         autogen.sh              \
32         mkinstalldirs           \
33         makefile.msc            \
34         glibconfig.h.win32.in   \
35         msvc_recommended_pragmas.h \
36         config.h.win32.in       \
37         po/po2tbl.sed.in        \
38         glib-2.0.pc.in          \
39         gobject-2.0.pc.in       \
40         gmodule-2.0.pc.in       \
41         gmodule-export-2.0.pc.in        \
42         gmodule-no-export-2.0.pc.in     \
43         gthread-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
49
50
51 # These may be in the builddir too
52 BUILT_EXTRA_DIST =              \
53         README                  \
54         INSTALL                 \
55         glibconfig.h.win32      \
56         config.h.win32          \
57         gtk-doc.make
58
59 configexecincludedir = $(libdir)/glib-2.0/include
60 configexecinclude_DATA = glibconfig.h
61
62 uninstall-local:
63         rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
64
65 CONFIGURE_DEPENDENCIES = acglib.m4
66
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
74
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
77
78 $(pkgconfig_DATA): config.status
79
80 # install mkinstalldirs for glib-gettextize's benefit
81 gettextdir = $(datadir)/glib-2.0/gettext
82 gettext_SCRIPTS = mkinstalldirs
83
84 # build documentation when doing distcheck
85 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man
86
87 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
88
89 distclean-local:
90         if test $(srcdir) = .; then :; else \
91             rm -f $(BUILT_EXTRA_DIST); \
92         fi
93
94 .PHONY: files release sanity snapshot
95
96 files:
97         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
98           echo $$p; \
99         done
100
101 release:
102         rm -rf .deps */.deps
103         cd docs && make glib.html
104         $(MAKE) distcheck
105
106 sanity:
107         ./sanity_check $(VERSION)
108
109 snapshot:
110         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
111
112 snapcheck:
113         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
114
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