home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: WPS_PM
/
WPS_PM.zip
/
xfld085s.zip
/
001
/
inf.001
/
inf001.mak
< prev
next >
Wrap
Text File
|
1999-02-05
|
2KB
|
76 lines
#
# Makefile for XFolder National Language Support.
#
# For use with IBM NMAKE, which is part of IBM C-Set/2 and VisualAge C++.
# This file will probably not work with other MAKE utilities, such as
# GNU make or DMAKE.
#
# Copyright (C) 1997-99 Ulrich Möller.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, in version 2 as it comes in the COPYING
# file of the XFolder main distribution.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Required changes for translating the NLS DLL: three lines below.
#
#
# First define the suffixes for files which NMAKE will work on.
# .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for
# defining file extensions that NMAKE will recognize.
#
.SUFFIXES: .html .ipf .hlp .inf
#
# Now set up a few environment variables.
#
# This is the language code for the language that the NLS DLL
# will support. Change this to a different language code, and
# the makefile will support your langauge.
LANGUAGE = 001
# Change this to the full path of the HTML2IPF utility.
# THIS HAS CHANGED WITH V0.84.
HTML2IPF = ..\tools\html2ipf.cmd
# Change this to the directory where the output file (INF)
# should be copied to.
!ifndef XFOLDERPATH
!error The environment variable XFOLDERPATH is not defined. Terminating.
!endif
COPYTO = $(XFOLDERPATH)
# DO NOT CHANGE THE FOLLOWING
#
# Now define inference rules for what to do with certain file
# types, based on their file extension.
# The syntax we need here is ".fromext.toext".
# So whenever NMAKE encounters a .toext file, it
# executes what we specify here.
#
.html.ipf:
$(HTML2IPF) xfldr$(LANGUAGE).html
.ipf.inf:
ipfc /inf $*.ipf $*.inf
#
# Now define inference rules for the different file types.
#
$(COPYTO)\xfldr$(LANGUAGE).inf: xfldr$(LANGUAGE).inf
cmd.exe /c copy $(@B).inf $(COPYTO)
xfldr$(LANGUAGE).inf: $*.ipf
xfldr$(LANGUAGE).ipf: *.html *.gif