16 BUILT_SOURCES += $(ICONV_H)
18 # We need the following in order to create <iconv.h> when the system
19 # doesn't have one that works with the given compiler.
20 iconv.h: iconv.in.h $(ARG_NONNULL_H)
21 $(AM_V_GEN)rm -f $@-t $@ && \
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
24 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
25 -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \
26 -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \
27 -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \
28 -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
29 -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \
30 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
31 < $(srcdir)/iconv.in.h; \
34 MOSTLYCLEANFILES += iconv.h iconv.h-t