Revert accidental commit
[platform/upstream/glib.git] / glib / libcharset / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES =                      \
4         -DLIBDIR=\"$(libdir)\" -I$(top_srcdir)
5
6 noinst_LTLIBRARIES = libcharset.la
7
8 libcharset_la_SOURCES =         \
9         libcharset.h            \
10         localcharset.c
11
12 EXTRA_DIST =                    \
13         README                  \
14         config.charset          \
15         ref-add.sin             \
16         ref-del.sin             \
17         glibc21.m4              \
18         codeset.m4              \
19         update.sh               \
20         make-patch.sh
21
22 charset_alias = $(DESTDIR)$(libdir)/charset.alias
23 charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
24 install-exec-local: all-local
25         $(mkinstalldirs) $(DESTDIR)$(libdir)
26         if test -f $(charset_alias); then \
27           sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
28           $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
29           rm -f $(charset_tmp) ; \
30         else \
31           if test @GLIBC21@ = no; then \
32             sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
33             $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
34             rm -f $(charset_tmp) ; \
35           fi ; \
36         fi
37
38 uninstall-local: all-local
39         if test -f $(charset_alias); then \
40           sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
41           if grep '^# Packages using this file: $$' $(charset_tmp) \
42               > /dev/null; then \
43             rm -f $(charset_alias); \
44           else \
45             $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
46           fi; \
47           rm -f $(charset_tmp); \
48         fi
49
50 charset.alias: config.charset
51         $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
52         mv t-$@ $@
53
54 all-local: ref-add.sed ref-del.sed charset.alias
55
56 SUFFIXES = .sed .sin
57 .sin.sed:
58         sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
59         mv t-$@ $@
60
61 CLEANFILES = charset.alias ref-add.sed ref-del.sed