4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Mike Frysinger 958833a0d3 newlib: integrate iconv update to maintainer build
To help prevent people from missing running this script, integrate it
into the build via maintainer mode.

Also fix the inverted exit status to make this work correctly -- for
some reason, it exited 1 when it worked, and 0 when it failed.
2022-03-16 21:59:57 -04:00

29 lines
807 B
Makefile

if ENABLE_NEWLIB_ICONV
cctdir = $(datadir)/iconv_data
cct_DATA = %D%/encoding.aliases
endif
LIBC_CHAPTERS += %D%/iconv.tex
## If mkdeps.pl or encodings.deps changes, make sure to regenerate outputs.
%C%_mkdeps_outputs = \
$(top_srcdir)/iconv.m4 \
$(srcdir)/%D%/ccs/ccsbi.c \
$(srcdir)/%D%/ccs/ccsbi.h \
$(srcdir)/%D%/ccs/ccsnames.h \
$(srcdir)/%D%/ces/cesbi.c \
$(srcdir)/%D%/ces/cesbi.h \
$(srcdir)/%D%/ces/cesdeps.h \
$(srcdir)/%D%/encoding.aliases \
$(srcdir)/%D%/lib/aliasesbi.c \
$(srcdir)/%D%/lib/encnames.h
$(%C%_mkdeps_outputs): @MAINTAINER_MODE_TRUE@ $(srcdir)/%D%/ces/mkdeps.pl $(srcdir)/%D%/lib/encoding.deps
$(AM_V_GEN)cd $(srcdir)/%D%/ces && ./mkdeps.pl
noinst_DATA += $(%C%_mkdeps_outputs)
include %D%/ces/Makefile.inc
include %D%/ccs/Makefile.inc
include %D%/lib/Makefile.inc