Some file list updates (#398069, Owen Taylor)
[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         libcharset-glib.patch
22
23 charset_alias = $(DESTDIR)$(libdir)/charset.alias
24 charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
25 install-exec-local: all-local
26         $(mkinstalldirs) $(DESTDIR)$(libdir)
27         if test -f $(charset_alias); then \
28           sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
29           $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
30           rm -f $(charset_tmp) ; \
31         else \
32           if test @GLIBC21@ = no; then \
33             sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
34             $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
35             rm -f $(charset_tmp) ; \
36           fi ; \
37         fi
38
39 uninstall-local: all-local
40         if test -f $(charset_alias); then \
41           sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
42           if grep '^# Packages using this file: $$' $(charset_tmp) \
43               > /dev/null; then \
44             rm -f $(charset_alias); \
45           else \
46             $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
47           fi; \
48           rm -f $(charset_tmp); \
49         fi
50
51 charset.alias: config.charset
52         $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
53         mv t-$@ $@
54
55 all-local: ref-add.sed ref-del.sed charset.alias
56
57 SUFFIXES = .sed .sin
58 .sin.sed:
59         sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
60         mv t-$@ $@
61
62 CLEANFILES = charset.alias ref-add.sed ref-del.sed