Update VS property sheets ("install" phase)
[platform/upstream/glib.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
3
4 # http://people.gnome.org/~walters/docs/build-api.txt
5 .buildapi-allow-builddir:
6
7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
8
9 SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs
10 DIST_SUBDIRS = $(SUBDIRS) build
11
12 bin_SCRIPTS = glib-gettextize
13
14 AM_CPPFLAGS =                                   \
15         -DG_LOG_DOMAIN=g_log_domain_glib        \
16         @GLIB_DEBUG_FLAGS@                      \
17         -DG_DISABLE_DEPRECATED                  \
18         -DGLIB_COMPILATION
19
20 EXTRA_DIST +=                   \
21         ChangeLog.pre-2-20      \
22         ChangeLog.pre-2-18      \
23         ChangeLog.pre-2-16      \
24         ChangeLog.pre-2-14      \
25         ChangeLog.pre-2-12      \
26         ChangeLog.pre-2-10      \
27         ChangeLog.pre-2-8       \
28         ChangeLog.pre-2-6       \
29         ChangeLog.pre-2-4       \
30         ChangeLog.pre-2-2       \
31         ChangeLog.pre-2-0       \
32         ChangeLog.pre-1-2       \
33         glib-zip.in             \
34         NEWS.pre-1-3            \
35         acglib.m4               \
36         sanity_check            \
37         README.commits          \
38         README.in               \
39         INSTALL.in              \
40         README.win32            \
41         HACKING                 \
42         MAINTAINERS             \
43         autogen.sh              \
44         Makefile.decl           \
45         mkinstalldirs           \
46         makefile.msc            \
47         msvc_recommended_pragmas.h \
48         config.h.win32.in       \
49         po/po2tbl.sed.in        \
50         glib-2.0.pc.in          \
51         gobject-2.0.pc.in       \
52         gmodule-2.0.pc.in       \
53         gmodule-export-2.0.pc.in        \
54         gmodule-no-export-2.0.pc.in     \
55         gthread-2.0.pc.in       \
56         gio-2.0.pc.in           \
57         gio-unix-2.0.pc.in      \
58         gio-windows-2.0.pc.in   \
59         glib-2.0-uninstalled.pc.in      \
60         gobject-2.0-uninstalled.pc.in   \
61         gmodule-2.0-uninstalled.pc.in   \
62         gthread-2.0-uninstalled.pc.in   \
63         gmodule-no-export-2.0-uninstalled.pc.in \
64         gio-2.0-uninstalled.pc.in               \
65         gio-unix-2.0-uninstalled.pc.in
66
67
68 # These may be in the builddir too
69 BUILT_EXTRA_DIST =              \
70         README                  \
71         INSTALL                 \
72         ChangeLog               \
73         config.h.win32          \
74         gtk-doc.make
75
76 CONFIGURE_DEPENDENCIES = acglib.m4
77
78 ChangeLog:
79         $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
80           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
81           && mv -f $@.tmp $@ \
82           || ($(RM) $@.tmp; \
83               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
84               (test -f $@ || echo git-log is required to generate this file >> $@)); \
85         else \
86           test -f $@ || \
87           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
88           echo A git checkout and git-log is required to generate this file >> $@); \
89         fi
90
91 pkgconfigdir = $(libdir)/pkgconfig
92 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
93
94 if OS_UNIX
95 pkgconfig_DATA += gio-unix-2.0.pc
96 endif
97
98 if OS_WIN32
99 pkgconfig_DATA += gio-windows-2.0.pc
100 endif
101
102 $(pkgconfig_DATA): config.status
103
104 # install mkinstalldirs for glib-gettextize's benefit
105 gettextdir = $(datadir)/glib-2.0/gettext
106 gettext_SCRIPTS = mkinstalldirs
107
108 # build documentation when doing distcheck
109 DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
110
111 DISTCLEANFILES = config.lt
112
113 distclean-local: lcov-clean
114         if test $(srcdir) = .; then :; else \
115             rm -f $(BUILT_EXTRA_DIST); \
116         fi
117
118 .PHONY: files release sanity snapshot ChangeLog
119
120 files:
121         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
122           echo $$p; \
123         done
124
125 release:
126         rm -rf .deps */.deps
127         cd docs && make glib.html
128         $(MAKE) distcheck
129
130 sanity:
131         ./sanity_check $(VERSION)
132
133 snapshot:
134         $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
135
136 snapcheck:
137         $(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
138
139 dist-hook: $(BUILT_EXTRA_DIST)
140         files='$(BUILT_EXTRA_DIST)'; \
141         for f in $$files; do \
142           if test -f $$f; then d=.; else d=$(srcdir); fi; \
143           rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done