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"
35 if test -d tests; then cd tests && $(MAKE) all; fi
37 # Installs the library and include files only. Typically called with only
38 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
39 install-lib : all force
40 cd lib && $(MAKE) install-lib libdir='$(libdir)' includedir='$(includedir)'
41 if [ ! -d $(includedir) ] ; then mkdir $(includedir) ; fi
42 $(INSTALL_DATA) include/iconv.h $(includedir)/iconv.h
45 cd libcharset && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
46 cd lib && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
47 cd src && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
48 if [ ! -d $(DESTDIR)$(prefix) ] ; then mkdir $(DESTDIR)$(prefix) ; fi
49 if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then mkdir $(DESTDIR)$(exec_prefix) ; fi
50 if [ ! -d $(DESTDIR)$(includedir) ] ; then mkdir $(DESTDIR)$(includedir) ; fi
51 $(INSTALL_DATA) include/iconv.h $(DESTDIR)$(includedir)/iconv.h
52 cd po && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
53 cd man && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
56 cd libcharset && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
57 cd lib && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
58 cd src && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
59 if [ ! -d $(DESTDIR)$(prefix) ] ; then mkdir $(DESTDIR)$(prefix) ; fi
60 if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then mkdir $(DESTDIR)$(exec_prefix) ; fi
61 if [ ! -d $(DESTDIR)$(includedir) ] ; then mkdir $(DESTDIR)$(includedir) ; fi
62 cd po && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
63 cd man && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
66 cd libcharset && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
67 cd lib && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
68 cd src && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
69 $(RM) $(DESTDIR)$(includedir)/iconv.h
70 cd po && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
71 cd man && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
74 cd libcharset && $(MAKE) check
75 cd lib && $(MAKE) check
76 cd src && $(MAKE) check
77 cd po && $(MAKE) check
78 cd man && $(MAKE) check
79 if test -d tests; then cd tests && $(MAKE) check; fi
82 cd libcharset && $(MAKE) mostlyclean
83 $(RM) lib/charset.alias lib/libcharset.*
84 cd lib && $(MAKE) mostlyclean
85 cd src && $(MAKE) mostlyclean
86 cd po && $(MAKE) mostlyclean
87 cd man && $(MAKE) mostlyclean
88 if test -d tests; then cd tests && $(MAKE) mostlyclean; fi
91 cd libcharset && $(MAKE) clean
92 $(RM) lib/charset.alias lib/libcharset.*
93 cd lib && $(MAKE) clean
94 cd src && $(MAKE) clean
95 cd po && $(MAKE) clean
96 cd man && $(MAKE) clean
97 if test -d tests; then cd tests && $(MAKE) clean; fi
100 cd libcharset && if test -f Makefile; then $(MAKE) distclean; fi
101 $(RM) lib/charset.alias lib/libcharset.*
102 cd lib && if test -f Makefile; then $(MAKE) distclean; fi
103 cd src && if test -f Makefile; then $(MAKE) distclean; fi
104 cd po && if test -f Makefile; then $(MAKE) distclean; fi
105 cd man && if test -f Makefile; then $(MAKE) distclean; fi
106 if test -d tests; then cd tests && if test -f Makefile; then $(MAKE) distclean; fi; fi
107 $(RM) config.status config.log config.cache Makefile libtool
108 $(RM) include/iconv.h
110 maintainer-clean : force
111 cd libcharset && if test -f Makefile; then $(MAKE) maintainer-clean; fi
112 $(RM) lib/charset.alias lib/libcharset.*
113 cd lib && if test -f Makefile; then $(MAKE) maintainer-clean; fi
114 cd src && if test -f Makefile; then $(MAKE) maintainer-clean; fi
115 cd po && if test -f Makefile; then $(MAKE) maintainer-clean; fi
116 cd man && if test -f Makefile; then $(MAKE) maintainer-clean; fi
117 if test -d tests; then cd tests && if test -f Makefile; then $(MAKE) maintainer-clean; fi; fi
118 $(RM) config.status config.log config.cache Makefile libtool
119 $(RM) include/iconv.h