1 # Makefile for libiconv
3 #### Start of system configuration section. ####
5 # Directories used by "make":
8 # Directories used by "make install":
10 local_prefix
= /usr
/local
11 exec_prefix = @
exec_prefix@
12 datarootdir
= @datarootdir@
15 includedir = @
includedir@
18 # Programs used by "make":
22 # Programs used by "make install":
24 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
25 INSTALL_DATA
= @INSTALL_DATA@
26 mkinstalldirs
= $(SHELL
) @top_srcdir@
/build-aux
/mkinstalldirs
28 #### End of system configuration section. ####
32 all : lib
/localcharset.h
force
34 cd srclib
&& $(MAKE
) all
38 if
test -d tests
; then cd tests
&& $(MAKE
) all; fi
41 builddir
="`pwd`"; cd libcharset
&& $(MAKE
) all && $(MAKE
) install-lib
libdir="$$builddir/lib" includedir="$$builddir/lib"
43 # Installs the library and include files only. Typically called with only
44 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
45 install-lib
: all force
46 cd lib
&& $(MAKE
) install-lib
libdir='$(libdir)' includedir='$(includedir)'
47 if
[ ! -d
$(includedir) ] ; then
$(mkinstalldirs
) $(includedir) ; fi
48 $(INSTALL_DATA
) include/iconv.h.inst
$(includedir)/iconv.h
50 install : lib
/localcharset.h
force
51 cd libcharset
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
52 cd lib
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
53 cd srclib
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
54 cd src
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
55 if
[ ! -d
$(DESTDIR
)$(includedir) ] ; then
$(mkinstalldirs
) $(DESTDIR
)$(includedir) ; fi
56 $(INSTALL_DATA
) include/iconv.h.inst
$(DESTDIR
)$(includedir)/iconv.h
57 cd po
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)'
58 cd man
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
60 install-strip
: lib
/localcharset.h
force
61 cd libcharset
&& $(MAKE
) install-strip
prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
62 cd lib
&& $(MAKE
) install-strip
prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
63 cd srclib
&& $(MAKE
) install-strip
prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
64 cd src
&& $(MAKE
) install-strip
prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
65 if
[ ! -d
$(DESTDIR
)$(includedir) ] ; then
$(mkinstalldirs
) $(DESTDIR
)$(includedir) ; fi
66 $(INSTALL_DATA
) include/iconv.h.inst
$(DESTDIR
)$(includedir)/iconv.h
67 cd po
&& $(MAKE
) install-strip
prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)'
68 cd man
&& $(MAKE
) install-strip
prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
71 cd libcharset
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
72 cd lib
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
73 cd srclib
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
74 cd src
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
75 if
[ ! -d
$(DESTDIR
)$(includedir) ] ; then
$(mkinstalldirs
) $(DESTDIR
)$(includedir) ; fi
76 cd po
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)'
77 cd man
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
80 cd libcharset
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
81 cd lib
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
82 cd srclib
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
83 cd src
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
84 $(RM
) $(DESTDIR
)$(includedir)/iconv.h
85 cd po
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)'
86 cd man
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir
='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)'
89 cd libcharset
&& $(MAKE
) check
90 cd lib
&& $(MAKE
) check
91 cd srclib
&& $(MAKE
) check
92 cd src
&& $(MAKE
) check
93 cd po
&& $(MAKE
) check
94 cd man
&& $(MAKE
) check
95 if
test -d tests
; then cd tests
&& $(MAKE
) check; fi
98 cd libcharset
&& $(MAKE
) mostlyclean
99 $(RM
) lib
/libcharset.
* lib
/localcharset.h
100 cd lib
&& $(MAKE
) mostlyclean
101 cd srclib
&& $(MAKE
) mostlyclean
102 cd src
&& $(MAKE
) mostlyclean
103 cd po
&& $(MAKE
) mostlyclean
104 cd man
&& $(MAKE
) mostlyclean
105 if
test -d tests
; then cd tests
&& $(MAKE
) mostlyclean; fi
109 cd libcharset
&& $(MAKE
) clean
110 $(RM
) lib
/libcharset.
* lib
/localcharset.h
111 cd lib
&& $(MAKE
) clean
112 cd srclib
&& $(MAKE
) clean
113 cd src
&& $(MAKE
) clean
114 cd po
&& $(MAKE
) clean
115 cd man
&& $(MAKE
) clean
116 if
test -d tests
; then cd tests
&& $(MAKE
) clean; fi
120 cd libcharset
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
121 $(RM
) lib
/libcharset.
* lib
/localcharset.h
122 cd lib
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
123 cd srclib
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
124 cd src
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
125 cd po
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
126 cd man
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
127 if
test -d tests
; then cd tests
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
; fi
128 $(RM
) config.status config.log config.cache Makefile libtool
129 $(RM
) config.h stamp-h1 lib
/stamp-h2
130 $(RM
) include/iconv.h
include/iconv.h.inst
133 maintainer-clean
: force
134 cd libcharset
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
135 $(RM
) lib
/libcharset.
* lib
/localcharset.h
136 cd lib
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
137 cd srclib
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
138 cd src
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
139 cd po
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
140 cd man
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
141 if
test -d tests
; then cd tests
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
; fi
142 $(RM
) config.status config.log config.cache Makefile libtool
143 $(RM
) config.h stamp-h1 lib
/stamp-h2
144 $(RM
) include/iconv.h
include/iconv.h.inst
148 # List of source files.
150 README DEPENDENCIES INSTALL.windows HACKING AUTHORS NEWS DESIGN NOTES THANKS \
151 ChangeLog Makefile.devel configure.ac Makefile.in \
152 include/export.h
include/iconv.h.in \
153 gnulib-local
/lib
/alloca.in.h \
154 gnulib-local
/lib
/error.h.diff \
155 gnulib-local
/lib
/progname.h.diff \
156 gnulib-local
/lib
/xalloc.h \
157 gnulib-local
/lib
/xmalloc.c \
158 gnulib-local
/lib
/xstrdup.c \
159 gnulib-local
/m4
/alloca.m4 \
160 gnulib-local
/modules
/libiconv-misc \
161 gnulib-local
/modules
/mbstate \
162 gnulib-local
/modules
/xalloc \
169 windows
/iconv.rc windows
/libiconv.rc windows
/windres-options \
170 woe32dll
/export.h woe32dll
/iconv-exports.c \
172 extras
/ChangeLog extras
/iconv_string.h extras
/iconv_string.c \
174 tools
/8bit_tab_to_h.c tools
/cjk_tab_to_h.c tools
/cjk_variants.c \
175 tools
/CP50221-0208-EXT.TXT tools
/CP50221-0212-EXT.TXT tools
/JISX0213.TXT
176 # List of distributed files imported from other packages.
177 LIBTOOL_IMPORTED_FILES
= \
178 build-aux
/ltmain.sh \
184 AUTOMAKE_OLD_IMPORTED_FILES
= \
185 build-aux
/mkinstalldirs
186 AUTOMAKE_IMPORTED_FILES
= \
188 build-aux
/install-sh \
190 GNULIB_IMPORTED_FILES
= \
191 doc
/relocatable.texi \
192 build-aux
/config.guess \
193 build-aux
/config.libpath \
194 build-aux
/config.rpath \
195 build-aux
/config.sub \
196 build-aux
/install-reloc \
197 build-aux
/reloc-ldflags
199 COPYING COPYING.LIB \
200 ABOUT-NLS INSTALL.generic \
202 $(LIBTOOL_IMPORTED_FILES
) $(AUTOMAKE_OLD_IMPORTED_FILES
) $(AUTOMAKE_IMPORTED_FILES
) $(GNULIB_IMPORTED_FILES
)
203 # List of distributed files generated by autotools or Makefile.devel.
205 aclocal.m4 configure config.h.in \
206 include/iconv.h.build.in
207 # List of distributed files generated by "make".
208 DISTRIBUTED_BUILT_FILES
=
209 # List of distributed files.
210 DISTFILES
= $(SOURCE_FILES
) $(IMPORTED_FILES
) $(GENERATED_FILES
) $(DISTRIBUTED_BUILT_FILES
)
212 distdir
: $(DISTFILES
)
213 for file in
$(DISTFILES
); do \
214 if
test -f
$$file; then
dir='.'; else dir='$(srcdir)'; fi
; \
215 destdir
=`echo '$(distdir)'/$$file | sed -e 's|//*[^/]*$$||'`; \
216 test -d
"$$destdir" ||
$(mkinstalldirs
) "$$destdir" >/dev
/null
; \
217 cp
-p
"$$dir/$$file" '$(distdir)'/$$file || exit
1; \
219 for sdir in srcm4
; do \
220 mkdir
-p
'$(distdir)'/$$sdir; \
221 for file in
'$(srcdir)'/$$sdir/*.m4
; do \
222 cp
-p
"$$file" '$(distdir)'/$$sdir/ || exit
1; \
225 test -d
'$(distdir)'/libcharset || mkdir
'$(distdir)'/libcharset
; cd libcharset
&& $(MAKE
) distdir distdir
='$(distdir)'/libcharset
226 test -d
'$(distdir)'/lib || mkdir
'$(distdir)'/lib
; cd lib
&& $(MAKE
) distdir distdir
='$(distdir)'/lib
227 test -d
'$(distdir)'/srclib || mkdir
'$(distdir)'/srclib
; cd srclib
&& $(MAKE
) distdir distdir
='$(distdir)'/srclib
228 test -d
'$(distdir)'/src || mkdir
'$(distdir)'/src
; cd src
&& $(MAKE
) distdir distdir
='$(distdir)'/src
229 test -d
'$(distdir)'/tests || mkdir
'$(distdir)'/tests
; cd tests
&& $(MAKE
) distdir distdir
='$(distdir)'/tests
230 test -d
'$(distdir)'/po || mkdir
'$(distdir)'/po
; cd po
&& $(MAKE
) distdir distdir
='$(distdir)'/po
231 test -d
'$(distdir)'/man || mkdir
'$(distdir)'/man
; cd man
&& $(MAKE
) distdir distdir
='$(distdir)'/man
234 # Creating a distribution tarball.
241 tmpdistdir
=$(PACKAGE
)-$(VERSION
); \
242 abstmpdistdir
=`pwd`/$$tmpdistdir; \
243 rm -rf
$$tmpdistdir $$tmpdistdir.
tar $$tmpdistdir.
tar.gz \
244 && mkdir
$$tmpdistdir \
245 && $(MAKE
) distdir distdir
="$$abstmpdistdir" \
246 && $(TAR
) chof
$$tmpdistdir.
tar --owner
=root
--group
=root
$$tmpdistdir \
247 && $(GZIP
) -9 $$tmpdistdir.
tar \
248 && rm -rf
$$tmpdistdir
253 # Work around an automake-1.8 bug.