1# Makefile for libcharset 2 3#### Start of system configuration section. #### 4 5 6# Directories used by "make": 7srcdir = @srcdir@ 8 9# Directories used by "make install": 10prefix = @prefix@ 11local_prefix = /usr/local 12exec_prefix = @exec_prefix@ 13datarootdir = @datarootdir@ 14datadir = @datadir@ 15libdir = @libdir@ 16includedir = @includedir@ 17mandir = @mandir@ 18 19# Programs used by "make": 20CP = cp 21RM = rm -f 22@SET_MAKE@ 23 24# Programs used by "make install": 25INSTALL = @INSTALL@ 26INSTALL_DATA = @INSTALL_DATA@ 27mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs 28 29#### End of system configuration section. #### 30 31SHELL = /bin/sh 32 33all : include/libcharset.h force 34 cd lib && $(MAKE) all 35 36include/libcharset.h : 37 if [ ! -d include ] ; then mkdir include ; fi 38 $(CP) $(srcdir)/include/libcharset.h.in include/libcharset.h 39 40# Installs the library and include files only. Typically called with only 41# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here. 42install-lib : all force 43 cd lib && $(MAKE) install-lib libdir='$(libdir)' includedir='$(includedir)' 44 $(mkinstalldirs) $(includedir) 45 $(INSTALL_DATA) include/libcharset.h $(includedir)/libcharset.h 46 $(INSTALL_DATA) include/localcharset.h.inst $(includedir)/localcharset.h 47 48install : include/libcharset.h include/localcharset.h force 49 cd lib && $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 50 $(mkinstalldirs) $(DESTDIR)$(includedir) 51 $(INSTALL_DATA) include/libcharset.h $(DESTDIR)$(includedir)/libcharset.h 52 $(INSTALL_DATA) include/localcharset.h.inst $(DESTDIR)$(includedir)/localcharset.h 53 54installdirs : force 55 cd lib && $(MAKE) installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 56 $(mkinstalldirs) $(DESTDIR)$(includedir) 57 58uninstall : force 59 cd lib && $(MAKE) uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' 60 $(RM) $(DESTDIR)$(includedir)/libcharset.h 61 $(RM) $(DESTDIR)$(includedir)/localcharset.h 62 63check : force 64 cd lib && $(MAKE) check 65 66mostlyclean : force 67 cd lib && $(MAKE) mostlyclean 68 69clean : force 70 cd lib && $(MAKE) clean 71 72distclean : force 73 cd lib && if test -f Makefile; then $(MAKE) distclean; fi 74 $(RM) include/libcharset.h include/localcharset.h include/localcharset.h.inst 75 $(RM) config.status config.log config.cache Makefile config.h libtool 76 77maintainer-clean : force 78 cd lib && if test -f Makefile; then $(MAKE) maintainer-clean; fi 79 $(RM) include/libcharset.h include/localcharset.h include/localcharset.h.inst 80 $(RM) config.status config.log config.cache Makefile config.h libtool 81 82force : 83 84