1# Makefile for libiconv 2 3#### Start of system configuration section. #### 4 5# Directories used by "make": 6srcdir = @srcdir@ 7 8# Directories used by "make install": 9prefix = @prefix@ 10local_prefix = /usr/local 11exec_prefix = @exec_prefix@ 12datarootdir = @datarootdir@ 13datadir = @datadir@ 14libdir = @libdir@ 15includedir = @includedir@ 16mandir = @mandir@ 17 18# Programs used by "make": 19RM = rm -f 20@SET_MAKE@ 21 22# Programs used by "make install": 23INSTALL = @INSTALL@ 24INSTALL_PROGRAM = @INSTALL_PROGRAM@ 25INSTALL_DATA = @INSTALL_DATA@ 26mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs 27 28#### End of system configuration section. #### 29 30SHELL = /bin/sh 31 32all : lib/localcharset.h force 33 cd lib && $(MAKE) all 34 cd srclib && $(MAKE) all 35 cd src && $(MAKE) all 36 cd po && $(MAKE) all 37 cd man && $(MAKE) all 38 if test -d tests; then cd tests && $(MAKE) all; fi 39 40lib/localcharset.h : 41 builddir="`pwd`"; cd libcharset && $(MAKE) all && $(MAKE) install-lib libdir="$$builddir/lib" includedir="$$builddir/lib" 42 43# Installs the library and include files only. Typically called with only 44# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here. 45install-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 49 50install : 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)$(prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(prefix) ; fi 56 if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(exec_prefix) ; fi 57 if [ ! -d $(DESTDIR)$(includedir) ] ; then $(mkinstalldirs) $(DESTDIR)$(includedir) ; fi 58 $(INSTALL_DATA) include/iconv.h.inst $(DESTDIR)$(includedir)/iconv.h 59 cd po && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' 60 cd man && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)' 61 62installdirs : force 63 cd libcharset && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 64 cd lib && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 65 cd srclib && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 66 cd src && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 67 if [ ! -d $(DESTDIR)$(prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(prefix) ; fi 68 if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then $(mkinstalldirs) $(DESTDIR)$(exec_prefix) ; fi 69 if [ ! -d $(DESTDIR)$(includedir) ] ; then $(mkinstalldirs) $(DESTDIR)$(includedir) ; fi 70 cd po && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' 71 cd man && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)' 72 73uninstall : force 74 cd libcharset && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 75 cd lib && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 76 cd srclib && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 77 cd src && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 78 $(RM) $(DESTDIR)$(includedir)/iconv.h 79 cd po && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' 80 cd man && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' datarootdir='$(datarootdir)' datadir='$(datadir)' mandir='$(mandir)' 81 82check : all force 83 cd libcharset && $(MAKE) check 84 cd lib && $(MAKE) check 85 cd srclib && $(MAKE) check 86 cd src && $(MAKE) check 87 cd po && $(MAKE) check 88 cd man && $(MAKE) check 89 if test -d tests; then cd tests && $(MAKE) check; fi 90 91mostlyclean : force 92 cd libcharset && $(MAKE) mostlyclean 93 $(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h 94 cd lib && $(MAKE) mostlyclean 95 cd srclib && $(MAKE) mostlyclean 96 cd src && $(MAKE) mostlyclean 97 cd po && $(MAKE) mostlyclean 98 cd man && $(MAKE) mostlyclean 99 if test -d tests; then cd tests && $(MAKE) mostlyclean; fi 100 rm -rf bin 101 102clean : force 103 cd libcharset && $(MAKE) clean 104 $(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h 105 cd lib && $(MAKE) clean 106 cd srclib && $(MAKE) clean 107 cd src && $(MAKE) clean 108 cd po && $(MAKE) clean 109 cd man && $(MAKE) clean 110 if test -d tests; then cd tests && $(MAKE) clean; fi 111 rm -rf bin 112 113distclean : force 114 cd libcharset && if test -f Makefile; then $(MAKE) distclean; fi 115 $(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h 116 cd lib && if test -f Makefile; then $(MAKE) distclean; fi 117 cd srclib && if test -f Makefile; then $(MAKE) distclean; fi 118 cd src && if test -f Makefile; then $(MAKE) distclean; fi 119 cd po && if test -f Makefile; then $(MAKE) distclean; fi 120 cd man && if test -f Makefile; then $(MAKE) distclean; fi 121 if test -d tests; then cd tests && if test -f Makefile; then $(MAKE) distclean; fi; fi 122 $(RM) config.status config.log config.cache Makefile libtool 123 $(RM) config.h stamp-h1 lib/stamp-h2 124 $(RM) include/iconv.h include/iconv.h.inst 125 rm -rf bin 126 127maintainer-clean : force 128 cd libcharset && if test -f Makefile; then $(MAKE) maintainer-clean; fi 129 $(RM) lib/charset.alias lib/libcharset.* lib/localcharset.h 130 cd lib && if test -f Makefile; then $(MAKE) maintainer-clean; fi 131 cd srclib && if test -f Makefile; then $(MAKE) maintainer-clean; fi 132 cd src && if test -f Makefile; then $(MAKE) maintainer-clean; fi 133 cd po && if test -f Makefile; then $(MAKE) maintainer-clean; fi 134 cd man && if test -f Makefile; then $(MAKE) maintainer-clean; fi 135 if test -d tests; then cd tests && if test -f Makefile; then $(MAKE) maintainer-clean; fi; fi 136 $(RM) config.status config.log config.cache Makefile libtool 137 $(RM) config.h stamp-h1 lib/stamp-h2 138 $(RM) include/iconv.h include/iconv.h.inst 139 rm -rf bin 140 141force : 142 143# Work around an automake-1.8 bug. 144am--refresh: 145