1 # Makefile for libiconv, for OS2/EMX
4 #### Start of system configuration section. ####
6 # Directories used by "make install":
8 exec_prefix = $(prefix)
9 libdir = $(exec_prefix)/lib
10 shlibdir = $(exec_prefix)/dll
11 includedir = $(prefix)/include
12 mandir = $(prefix)/man
14 #### End of system configuration section. ####
17 sed -e 's/@ICONV_CONST@/const/g' < include/iconv.h.in > include/iconv.h
18 (cd lib && $(MAKE) -f Makefile.os2 all && cd ..)
19 (cd src && $(MAKE) -f Makefile.os2 all && cd ..)
20 (cd man && $(MAKE) -f Makefile.os2 all && cd ..)
21 (cd tests && $(MAKE) -f Makefile.os2 all && cd ..)
23 # Installs the library and include files only. Typically called with only
24 # $(libdir), $(shlibdir) and $(includedir) - don't use $(prefix) and
25 # $(exec_prefix) here.
26 install-lib : all force
27 @echo install to $(libdir), $(shlibdir) and $(includedir)
28 cp include/iconv.h $(includedir)/iconv.h
29 (cd lib && $(MAKE) -f Makefile.os2 install-lib libdir='$(libdir)' shlibdir='$(shlibdir)' includedir='$(includedir)' && cd ..)
32 @echo install to $(prefix)
33 cp include/iconv.h $(includedir)/iconv.h
34 (cd lib && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
35 (cd src && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
36 (cd man && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)' && cd ..)
39 rm -i $(includedir)/iconv.h
40 (cd lib && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
41 (cd src && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
42 (cd man && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)' && cd ..)
45 (cd lib && $(MAKE) -f Makefile.os2 check && cd ..)
46 (cd src && $(MAKE) -f Makefile.os2 check && cd ..)
47 (cd man && $(MAKE) -f Makefile.os2 check && cd ..)
48 (cd tests && $(MAKE) -f Makefile.os2 check && cd ..)
51 (cd lib && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
52 (cd src && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
53 (cd man && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
54 (cd tests && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
57 (cd lib && $(MAKE) -f Makefile.os2 clean && cd ..)
58 (cd src && $(MAKE) -f Makefile.os2 clean && cd ..)
59 (cd man && $(MAKE) -r Makefile.os2 clean && cd ..)
60 (cd tests && $(MAKE) -r Makefile.os2 clean && cd ..)
63 (cd lib && $(MAKE) -f Makefile.os2 distclean && cd ..)
64 (cd src && $(MAKE) -f Makefile.os2 distclean && cd ..)
65 (cd man && $(MAKE) -f Makefile.os2 distclean && cd ..)
66 (cd tests && $(MAKE) -f Makefile.os2 distclean && cd ..)
69 maintainer-clean : force
70 (cd lib && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
71 (cd src && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
72 (cd man && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
73 (cd tests && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)