1 ## Process this file with automake to produce Makefile.in
5 noinst_LTLIBRARIES = libcharset.la
6 libcharset_la_SOURCES = localcharset.c
7 noinst_HEADERS = libcharset.h
8 INCLUDES = -DLIBDIR=\"$(libdir)\"
10 EXTRA_DIST = config.charset ref-add.sin ref-del.sin
12 all-local: charset.alias ref-add.sed ref-del.sed
14 charset_alias = $(DESTDIR)$(libdir)/charset.alias
15 charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
16 install-exec-local: all-local
17 test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir)
18 if test -f $(charset_alias); then \
19 sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
20 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
21 rm -f $(charset_tmp) ; \
23 if test @GLIBC21@ = no; then \
24 sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
25 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
26 rm -f $(charset_tmp) ; \
30 uninstall-local: all-local
31 if test -f $(charset_alias); then \
32 sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
33 if grep '^# Packages using this file: $$' $(charset_tmp) \
35 rm -f $(charset_alias); \
37 $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
39 rm -f $(charset_tmp); \
42 charset.alias: config.charset
43 $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
48 sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
51 CLEANFILES = charset.alias ref-add.sed ref-del.sed