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