From: Peter Verthez Date: Sun, 13 Oct 2002 14:25:28 +0000 (+0000) Subject: Integration of libcharset into gedcom-parse. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=534e414595f1cd616c2ea012f8803ec1bf936e15;p=gedcom-parse.git Integration of libcharset into gedcom-parse. --- diff --git a/utf8/libcharset/Makefile.am b/utf8/libcharset/Makefile.am new file mode 100644 index 0000000..44f75c7 --- /dev/null +++ b/utf8/libcharset/Makefile.am @@ -0,0 +1,51 @@ +## Process this file with automake to produce Makefile.in +# $Id$ +# $Name$ + +noinst_LTLIBRARIES = libcharset.la +libcharset_la_SOURCES = localcharset.c +noinst_HEADERS = libcharset.h +INCLUDES = -DLIBDIR=\"$(libdir)\" + +EXTRA_DIST = config.charset ref-add.sin ref-del.sin + +all-local: charset.alias ref-add.sed ref-del.sed + +charset_alias = $(DESTDIR)$(libdir)/charset.alias +charset_tmp = $(DESTDIR)$(libdir)/charset.tmp +install-exec-local: all-local + test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir) + if test -f $(charset_alias); then \ + sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ + $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ + rm -f $(charset_tmp) ; \ + else \ + if test @GLIBC21@ = no; then \ + sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ + $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ + rm -f $(charset_tmp) ; \ + fi ; \ + fi + +uninstall-local: all-local + if test -f $(charset_alias); then \ + sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ + if grep '^# Packages using this file: $$' $(charset_tmp) \ + > /dev/null; then \ + rm -f $(charset_alias); \ + else \ + $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \ + fi; \ + rm -f $(charset_tmp); \ + fi + +charset.alias: config.charset + $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ + mv t-$@ $@ + +SUFFIXES = .sed .sin +.sin.sed: + sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@ + mv t-$@ $@ + +CLEANFILES = charset.alias ref-add.sed ref-del.sed