Add $(srcdir)/ to source directory references in Makefile fragments
[gnulib.git] / modules / iconv_open
1 Description:
2 Character set conversion.
3
4 Files:
5 lib/iconv_.h
6 lib/iconv_open.c
7 lib/iconv_open-aix.gperf
8 lib/iconv_open-hpux.gperf
9 lib/iconv_open-irix.gperf
10 lib/iconv_open-osf.gperf
11 m4/iconv_h.m4
12 m4/iconv_open.m4
13
14 Depends-on:
15 absolute-header
16 iconv
17 c-ctype
18
19 configure.ac:
20 gl_ICONV_H
21 gl_FUNC_ICONV_OPEN
22
23 Makefile.am:
24 BUILT_SOURCES += $(ICONV_H)
25
26 # We need the following in order to create <iconv.h> when the system
27 # doesn't have one that works with the given compiler.
28 iconv.h: iconv_.h
29         rm -f $@-t $@
30         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
31           sed -e 's|@''ABSOLUTE_ICONV_H''@|$(ABSOLUTE_ICONV_H)|g' \
32               -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
33               < $(srcdir)/iconv_.h; \
34         } > $@-t
35         mv $@-t $@
36 MOSTLYCLEANFILES += iconv.h iconv.h-t
37
38 GPERF = gperf
39 iconv_open-aix.h: iconv_open-aix.gperf
40         $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t
41         mv $@-t $@
42 iconv_open-hpux.h: iconv_open-hpux.gperf
43         $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t
44         mv $@-t $@
45 iconv_open-irix.h: iconv_open-irix.gperf
46         $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t
47         mv $@-t $@
48 iconv_open-osf.h: iconv_open-osf.gperf
49         $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t
50         mv $@-t $@
51 BUILT_SOURCES        += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h
52 MOSTLYCLEANFILES     += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t
53 MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h
54 EXTRA_DIST           += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h
55
56 Include:
57 <iconv.h>
58
59 License:
60 LGPL
61
62 Maintainer:
63 Bruno Haible
64