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