#==============================================================================
# Makefile
#
# OS/2 Makefile for use with IBM C/C++ Set/2 to build the CLI for mSQL
#
# (c) 1996 by Dirk Ohme - all rights reserved
#==============================================================================
# includes
#==============================================================================
include ..\Config.mk
include ..\Version.mk
#==============================================================================

#---| definitions |------------------------------------------------------------
NAME     = iodbc

#---| online help compiler |---------------------------------------------------
IPF      = ipfc /inf
INF      = view

#---| global dependencies |----------------------------------------------------
all:     $(NAME).inf $(NAME).htm install
clean:
delete:  clean
         @if exist *.inf       del *.inf
delete_all: delete
install:
         if exist ..\..\doc\$(NAME).htm     del ..\..\doc\$(NAME).htm
         if exist ..\..\doc\$(NAME).inf     del ..\..\doc\$(NAME).inf
         if exist ..\..\doc\$(NAME)_*.bmp   del ..\..\doc\$(NAME)_*.bmp
         copy /b $(NAME).htm     ..\..\doc
         copy /b $(NAME).inf     ..\..\doc
         copy /b $(NAME)_*.bmp   ..\..\doc
view:    $(NAME).inf
         @$(INF) $(NAME).inf

#--------| inference rules |---------------------------------------------------
.SUFFIXES: .htm .inf .ipf
.ipf.htm:
         @cd ..\os2_tool
         @convert ..\doc\$(NAME)
         @cd ..\doc
.ipf.inf:
         @$(IPF) $*.ipf

#---| local dependencies |-----------------------------------------------------
$(NAME).htm:       $(NAME).ipf
$(NAME).inf:       $(NAME).ipf

#==============================================================================
