2 include $(top_builddir
)/Makefile.config
4 localedir
= $(datadir)/locale
5 builddir
= $(top_builddir
)/src
/intl
/gettext
7 CFLAGS
+= $(GETTEXT_CFLAGS
)
30 # $(builddir)/charset.alias: $(srcdir)config.charset
31 $(builddir
)/charset.alias
: $(srcdir)config.charset
32 $(SHELL
) $(srcdir)config.charset
'$(host)' > $@.new
35 # FIXME: Building plural.c from plural.y on the fly doesn't work
37 YACC
= $(INTLBISON
) -y
-d
38 YFLAGS
= --name-prefix
=gettext__
42 $(YACC
) $(YFLAGS
) --output
$@
$<
45 install-local
: $(builddir
)/charset.alias
all
46 @if
test '$(CONFIG_NLS)' = yes
; then \
47 temp
=$(DESTDIR
)$(libdir)/t-charset.alias
; \
48 dest
=$(DESTDIR
)$(libdir)/charset.alias
; \
49 if
test -f
$(DESTDIR
)$(libdir)/charset.alias
; then \
50 orig
=$(DESTDIR
)$(libdir)/charset.alias
; \
51 sed
-f ref-add.sed
$$orig > $$temp; \
52 $(INSTALL_DATA
) $$temp $$dest; \
55 if
test $(GLIBC21
) = no
; then \
56 $(MKINSTALLDIRS
) $(DESTDIR
)$(libdir); \
58 sed
-f ref-add.sed
$$orig > $$temp; \
59 $(INSTALL_DATA
) $$temp $$dest; \
63 $(MKINSTALLDIRS
) $(DESTDIR
)$(localedir
); \
64 test -f
$(DESTDIR
)$(localedir
)/locale.alias \
65 && orig
=$(DESTDIR
)$(localedir
)/locale.alias \
66 || orig
=$(srcdir)locale.alias
; \
67 temp
=$(DESTDIR
)$(localedir
)/t-locale.alias
; \
68 dest
=$(DESTDIR
)$(localedir
)/locale.alias
; \
69 sed
-f ref-add.sed
$$orig > $$temp; \
70 $(INSTALL_DATA
) $$temp $$dest; \
77 @if
test '$(CONFIG_NLS)' = yes
; then \
78 if
test -f
$(DESTDIR
)$(libdir)/charset.alias
; then \
79 temp
=$(DESTDIR
)$(libdir)/t-charset.alias
; \
80 dest
=$(DESTDIR
)$(libdir)/charset.alias
; \
81 sed
-f ref-del.sed
$$dest > $$temp; \
82 if grep
'^# Packages using this file: $$' $$temp > /dev
/null
; then \
85 $(INSTALL_DATA
) $$temp $$dest; \
89 if
test -f
$(DESTDIR
)$(localedir
)/locale.alias
; then \
90 temp
=$(DESTDIR
)$(localedir
)/t-locale.alias
; \
91 dest
=$(DESTDIR
)$(localedir
)/locale.alias
; \
92 sed
-f ref-del.sed
$$dest > $$temp; \
93 if grep
'^# Packages using this file: $$' $$temp > /dev
/null
; then \
96 $(INSTALL_DATA
) $$temp $$dest; \
104 include $(top_srcdir
)/Makefile.lib