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