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