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 JOIN-GNU \
151 DESIGN NOTES THANKS \
152 ChangeLog autogen.sh Makefile.devel configure.ac Makefile.in \
153 include/export.h
include/iconv.h.in \
154 gnulib-local
/lib
/alloca.in.h \
155 gnulib-local
/lib
/error.h.diff \
156 gnulib-local
/lib
/progname.h.diff \
157 gnulib-local
/lib
/xalloc.h \
158 gnulib-local
/lib
/xmalloc.c \
159 gnulib-local
/lib
/xstrdup.c \
160 gnulib-local
/m4
/alloca.m4 \
161 gnulib-local
/modules
/libiconv-misc \
162 gnulib-local
/modules
/mbstate \
163 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 tools
/gen-translit-def-part.lisp
177 # List of distributed files imported from other packages.
178 LIBTOOL_IMPORTED_FILES
= \
179 build-aux
/ltmain.sh \
185 AUTOMAKE_OLD_IMPORTED_FILES
= \
186 build-aux
/mkinstalldirs
187 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 \
203 $(LIBTOOL_IMPORTED_FILES
) $(AUTOMAKE_OLD_IMPORTED_FILES
) $(AUTOMAKE_IMPORTED_FILES
) $(GNULIB_IMPORTED_FILES
)
204 # List of distributed files generated by autotools or Makefile.devel.
206 aclocal.m4 configure config.h.in \
207 include/iconv.h.build.in
208 # List of distributed files generated by "make".
209 DISTRIBUTED_BUILT_FILES
=
210 # List of distributed files.
211 DISTFILES
= $(SOURCE_FILES
) $(IMPORTED_FILES
) $(GENERATED_FILES
) $(DISTRIBUTED_BUILT_FILES
)
213 distdir
: $(DISTFILES
)
214 for file in
$(DISTFILES
); do \
215 if
test -f
$$file; then
dir='.'; else dir='$(srcdir)'; fi
; \
216 destdir
=`echo '$(distdir)'/$$file | sed -e 's|//*[^/]*$$||'`; \
217 test -d
"$$destdir" ||
$(mkinstalldirs
) "$$destdir" >/dev
/null
; \
218 cp
-p
"$$dir/$$file" '$(distdir)'/$$file || exit
1; \
220 for sdir in srcm4
; do \
221 mkdir
-p
'$(distdir)'/$$sdir; \
222 for file in
'$(srcdir)'/$$sdir/*.m4
; do \
223 cp
-p
"$$file" '$(distdir)'/$$sdir/ || exit
1; \
226 test -d
'$(distdir)'/libcharset || mkdir
'$(distdir)'/libcharset
; cd libcharset
&& $(MAKE
) distdir distdir
='$(distdir)'/libcharset
227 test -d
'$(distdir)'/lib || mkdir
'$(distdir)'/lib
; cd lib
&& $(MAKE
) distdir distdir
='$(distdir)'/lib
228 test -d
'$(distdir)'/srclib || mkdir
'$(distdir)'/srclib
; cd srclib
&& $(MAKE
) distdir distdir
='$(distdir)'/srclib
229 test -d
'$(distdir)'/src || mkdir
'$(distdir)'/src
; cd src
&& $(MAKE
) distdir distdir
='$(distdir)'/src
230 test -d
'$(distdir)'/tests || mkdir
'$(distdir)'/tests
; cd tests
&& $(MAKE
) distdir distdir
='$(distdir)'/tests
231 test -d
'$(distdir)'/po || mkdir
'$(distdir)'/po
; cd po
&& $(MAKE
) distdir distdir
='$(distdir)'/po
232 test -d
'$(distdir)'/man || mkdir
'$(distdir)'/man
; cd man
&& $(MAKE
) distdir distdir
='$(distdir)'/man
235 # Creating a distribution tarball.
242 tmpdistdir
=$(PACKAGE
)-$(VERSION
); \
243 abstmpdistdir
=`pwd`/$$tmpdistdir; \
244 rm -rf
$$tmpdistdir $$tmpdistdir.
tar $$tmpdistdir.
tar.gz \
245 && mkdir
$$tmpdistdir \
246 && $(MAKE
) distdir distdir
="$$abstmpdistdir" \
247 && $(TAR
) chof
$$tmpdistdir.
tar --owner
=root
--group
=root
$$tmpdistdir \
248 && $(GZIP
) -9 $$tmpdistdir.
tar \
249 && rm -rf
$$tmpdistdir
254 # Work around an automake-1.8 bug.