Copy trailing NULL into new ARGV array. (#67673)
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.4
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-1-2       \
14         glib.spec.in            \
15         glib-zip.in             \
16         NEWS.pre-1-3            \
17         acglib.m4               \
18         sanity_check            \
19         README.in               \
20         INSTALL.in              \
21         README.win32            \
22         TODO.xml                \
23         makefile.msc            \
24         makefile.mingw          \
25         glibconfig.h.win32.in   \
26         config.h.win32.in       \
27         po/po2tbl.sed.in        \
28         glib-2.0.pc.in          \
29         gobject-2.0.pc.in       \
30         gmodule-2.0.pc.in       \
31         gthread-2.0.pc.in       \
32         glib-2.0-uninstalled.pc.in      \
33         gobject-2.0-uninstalled.pc.in   \
34         gmodule-2.0-uninstalled.pc.in   \
35         gthread-2.0-uninstalled.pc.in
36
37 # These may be in the builddir too
38 BUILT_EXTRA_DIST =              \
39         glibconfig.h.win32      \
40         config.h.win32          \
41         glib.spec               \
42         glib-zip
43
44 configexecincludedir = $(libdir)/glib-2.0/include
45 #configexecinclude_DATA = glibconfig.h
46
47 install-exec-local: glibconfig.h
48         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
49         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
50         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
51         else $(INSTALL_DATA) glibconfig.h $$file; fi
52
53 CONFIGURE_DEPENDENCIES = acglib.m4
54
55 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
56 glibconfig.h: stamp-gc-h
57         @if test -f glibconfig.h; then :; \
58         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
59 stamp-gc-h: config.status
60         CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=glibconfig.h ./config.status
61         echo timestamp > stamp-gc-h
62
63
64 pkgconfigdir = $(libdir)/pkgconfig
65 pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gthread-2.0.pc
66
67 $(pkgconfig_DATA): config.status
68
69 glibconfig.h.win32: $(top_builddir)/config.status $(top_srcdir)/glibconfig.h.win32.in
70         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
71
72 config.h.win32: $(top_builddir)/config.status $(top_srcdir)/config.h.win32.in
73         cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
74
75 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
76
77 .PHONY: files release sanity snapshot
78
79 files:
80         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
81           echo $$p; \
82         done
83
84 release:
85         rm -rf .deps */.deps
86         cd docs && make glib.html
87         $(MAKE) distcheck
88
89 sanity:
90         ./sanity_check $(VERSION)
91
92 snapshot:
93         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
94
95 snapcheck:
96         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
97
98 dist-hook: $(BUILT_EXTRA_DIST)
99         cd $(top_builddir) && CONFIG_FILES="INSTALL README" CONFIG_HEADERS= $(SHELL) ./config.status
100         files='$(BUILT_EXTRA_DIST) INSTALL README'; \
101         for f in $$files; do \
102           if test -f $$f; then d=.; else d=$(srcdir); fi; \
103           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done