2 include $(top_builddir
)/Makefile.config
4 localedir
= $(datadir)/locale
5 builddir
= $(top_builddir
)/src
/intl
/gettext
28 # $(builddir)/charset.alias: $(srcdir)/config.charset
29 $(builddir
)/charset.alias
: $(srcdir)/config.charset
30 $(SHELL
) $(srcdir)/config.charset
'@host@' > $@.new
33 # FIXME: Building plural.c from plural.y on the fly doesn't work
35 YACC
= $(INTLBISON
) -y
-d
36 YFLAGS
= --name-prefix
=gettext__
40 $(YACC
) $(YFLAGS
) --output
$@
$<
43 install-local
: $(builddir
)/charset.alias
all
44 @if
test '$(CONFIG_NLS)' = yes
; then \
45 temp
=$(DESTDIR
)$(libdir)/t-charset.alias
; \
46 dest
=$(DESTDIR
)$(libdir)/charset.alias
; \
47 if
test -f
$(DESTDIR
)$(libdir)/charset.alias
; then \
48 orig
=$(DESTDIR
)$(libdir)/charset.alias
; \
49 sed
-f ref-add.sed
$$orig > $$temp; \
50 $(INSTALL_DATA
) $$temp $$dest; \
53 if
test @GLIBC21@
= no
; then \
54 $(MKINSTALLDIRS
) $(DESTDIR
)$(libdir); \
56 sed
-f ref-add.sed
$$orig > $$temp; \
57 $(INSTALL_DATA
) $$temp $$dest; \
61 $(MKINSTALLDIRS
) $(DESTDIR
)$(localedir
); \
62 test -f
$(DESTDIR
)$(localedir
)/locale.alias \
63 && orig
=$(DESTDIR
)$(localedir
)/locale.alias \
64 || orig
=$(srcdir)/locale.alias
; \
65 temp
=$(DESTDIR
)$(localedir
)/t-locale.alias
; \
66 dest
=$(DESTDIR
)$(localedir
)/locale.alias
; \
67 sed
-f ref-add.sed
$$orig > $$temp; \
68 $(INSTALL_DATA
) $$temp $$dest; \
75 @if
test '@USE_INCLUDED_LIBINTL@' = yes
; then \
76 if
test -f
$(DESTDIR
)$(libdir)/charset.alias
; then \
77 temp
=$(DESTDIR
)$(libdir)/t-charset.alias
; \
78 dest
=$(DESTDIR
)$(libdir)/charset.alias
; \
79 sed
-f ref-del.sed
$$dest > $$temp; \
80 if grep
'^# Packages using this file: $$' $$temp > /dev
/null
; then \
83 $(INSTALL_DATA
) $$temp $$dest; \
87 if
test -f
$(DESTDIR
)$(localedir
)/locale.alias
; then \
88 temp
=$(DESTDIR
)$(localedir
)/t-locale.alias
; \
89 dest
=$(DESTDIR
)$(localedir
)/locale.alias
; \
90 sed
-f ref-del.sed
$$dest > $$temp; \
91 if grep
'^# Packages using this file: $$' $$temp > /dev
/null
; then \
94 $(INSTALL_DATA
) $$temp $$dest; \
102 include $(top_srcdir
)/Makefile.lib