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@
13 includedir = @
includedir@
16 # Programs used by "make":
20 # Programs used by "make install":
22 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
23 INSTALL_DATA
= @INSTALL_DATA@
25 #### End of system configuration section. ####
30 builddir
="`pwd`"; cd libcharset
&& $(MAKE
) all && $(MAKE
) install-lib
libdir="$$builddir/lib" includedir="$$builddir/lib"
34 if
test -d tests
; then cd tests
&& $(MAKE
) all; fi
36 # Installs the library and include files only. Typically called with only
37 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
38 install-lib
: all force
39 cd lib
&& $(MAKE
) install-lib
libdir='$(libdir)' includedir='$(includedir)'
40 if
[ ! -d
$(includedir) ] ; then mkdir
$(includedir) ; fi
41 $(INSTALL_DATA
) include/iconv.h
$(includedir)/iconv.h
44 cd libcharset
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
45 cd lib
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
46 cd src
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
47 if
[ ! -d
$(DESTDIR
)$(prefix) ] ; then mkdir
$(DESTDIR
)$(prefix) ; fi
48 if
[ ! -d
$(DESTDIR
)$(exec_prefix) ] ; then mkdir
$(DESTDIR
)$(exec_prefix) ; fi
49 if
[ ! -d
$(DESTDIR
)$(includedir) ] ; then mkdir
$(DESTDIR
)$(includedir) ; fi
50 $(INSTALL_DATA
) include/iconv.h
$(DESTDIR
)$(includedir)/iconv.h
51 cd man
&& $(MAKE
) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
54 cd libcharset
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
55 cd lib
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
56 cd src
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
57 if
[ ! -d
$(DESTDIR
)$(prefix) ] ; then mkdir
$(DESTDIR
)$(prefix) ; fi
58 if
[ ! -d
$(DESTDIR
)$(exec_prefix) ] ; then mkdir
$(DESTDIR
)$(exec_prefix) ; fi
59 if
[ ! -d
$(DESTDIR
)$(includedir) ] ; then mkdir
$(DESTDIR
)$(includedir) ; fi
60 cd man
&& $(MAKE
) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
63 cd libcharset
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
64 cd lib
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
65 cd src
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
66 $(RM
) $(DESTDIR
)$(includedir)/iconv.h
67 cd man
&& $(MAKE
) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
70 cd libcharset
&& $(MAKE
) check
71 cd lib
&& $(MAKE
) check
72 cd src
&& $(MAKE
) check
73 cd man
&& $(MAKE
) check
74 if
test -d tests
; then cd tests
&& $(MAKE
) check; fi
77 cd libcharset
&& $(MAKE
) mostlyclean
78 $(RM
) lib
/charset.alias lib
/libcharset.
*
79 cd lib
&& $(MAKE
) mostlyclean
80 cd src
&& $(MAKE
) mostlyclean
81 cd man
&& $(MAKE
) mostlyclean
82 if
test -d tests
; then cd tests
&& $(MAKE
) mostlyclean; fi
85 cd libcharset
&& $(MAKE
) clean
86 $(RM
) lib
/charset.alias lib
/libcharset.
*
87 cd lib
&& $(MAKE
) clean
88 cd src
&& $(MAKE
) clean
89 cd man
&& $(MAKE
) clean
90 if
test -d tests
; then cd tests
&& $(MAKE
) clean; fi
93 cd libcharset
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
94 $(RM
) lib
/charset.alias lib
/libcharset.
*
95 cd lib
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
96 cd src
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
97 cd man
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
98 if
test -d tests
; then cd tests
&& if
test -f Makefile
; then
$(MAKE
) distclean; fi
; fi
99 $(RM
) config.status config.log config.cache Makefile libtool
100 $(RM
) include/iconv.h
102 maintainer-clean
: force
103 cd libcharset
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
104 $(RM
) lib
/charset.alias lib
/libcharset.
*
105 cd lib
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
106 cd src
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
107 cd man
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
108 if
test -d tests
; then cd tests
&& if
test -f Makefile
; then
$(MAKE
) maintainer-clean
; fi
; fi
109 $(RM
) config.status config.log config.cache Makefile libtool
110 $(RM
) include/iconv.h