Enhance sort() documentation. (#314839, Behdad Esfahbod)
[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-6       \
14         ChangeLog.pre-2-4       \
15         ChangeLog.pre-2-2       \
16         ChangeLog.pre-2-0       \
17         ChangeLog.pre-1-2       \
18         glib-zip.in             \
19         NEWS.pre-1-3            \
20         acglib.m4               \
21         sanity_check            \
22         README.in               \
23         INSTALL.in              \
24         README.win32            \
25         makefile.msc            \
26         glibconfig.h.win32.in   \
27         msvc_recommended_pragmas.h \
28         config.h.win32.in       \
29         po/po2tbl.sed.in        \
30         glib-2.0.pc.in          \
31         gobject-2.0.pc.in       \
32         gmodule-2.0.pc.in       \
33         gmodule-export-2.0.pc.in        \
34         gmodule-no-export-2.0.pc.in     \
35         gthread-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   \
40         gmodule-no-export-2.0-uninstalled.pc.in
41
42
43 # These may be in the builddir too
44 BUILT_EXTRA_DIST =              \
45         README                  \
46         INSTALL                 \
47         glibconfig.h.win32      \
48         config.h.win32          \
49         gtk-doc.make
50
51 configexecincludedir = $(libdir)/glib-2.0/include
52 #configexecinclude_DATA = glibconfig.h
53
54 install-exec-local: glibconfig.h
55         $(mkinstalldirs) $(DESTDIR)$(configexecincludedir)
56         file=$(DESTDIR)$(configexecincludedir)/glibconfig.h; \
57         if test -r $$file && cmp -s glibconfig.h $$file; then :; \
58         else $(INSTALL_DATA) glibconfig.h $$file; fi
59
60 uninstall-local:
61         rm -f $(DESTDIR)$(configexecincludedir)/glibconfig.h
62
63 CONFIGURE_DEPENDENCIES = acglib.m4
64
65 BUILT_SOURCES = stamp-gc-h #note: not glibconfig.h
66 glibconfig.h: stamp-gc-h
67         @if test -f glibconfig.h; then :; \
68         else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
69 stamp-gc-h: config.status
70         cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
71         echo timestamp > stamp-gc-h
72
73 pkgconfigdir = $(libdir)/pkgconfig
74 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
75
76 $(pkgconfig_DATA): config.status
77
78 # install mkinstalldirs for glib-gettextize's benefit
79 gettextdir = $(datadir)/glib-2.0/gettext
80 gettext_SCRIPTS = mkinstalldirs
81
82 # build documentation when doing distcheck
83 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
84
85 DISTCLEANFILES = glibconfig-sysdefs.h glibconfig.h stamp-gc-h
86
87 distclean-local:
88         if test $(srcdir) = .; then :; else \
89             rm -f $(BUILT_EXTRA_DIST); \
90         fi
91
92 .PHONY: files release sanity snapshot
93
94 files:
95         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
96           echo $$p; \
97         done
98
99 release:
100         rm -rf .deps */.deps
101         cd docs && make glib.html
102         $(MAKE) distcheck
103
104 sanity:
105         ./sanity_check $(VERSION)
106
107 snapshot:
108         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
109
110 snapcheck:
111         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
112
113 dist-hook: $(BUILT_EXTRA_DIST)
114         files='$(BUILT_EXTRA_DIST)'; \
115         for f in $$files; do \
116           if test -f $$f; then d=.; else d=$(srcdir); fi; \
117           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done