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