home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xf083ses.zip / INF.046 / inf046.mak < prev    next >
Text File  |  1999-01-24  |  2KB  |  73 lines

  1. #
  2. # Makefile for XFolder National Language Support.
  3. #
  4. # For use with IBM NMAKE, which is part of IBM C-Set/2 and VisualAge C++.
  5. # This file will probably not work with other MAKE utilities, such as
  6. # GNU make or DMAKE.
  7. #
  8. # Copyright (C) 1997-99 Ulrich Möller.
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation, in version 2 as it comes in the COPYING
  12. # file of the XFolder main distribution.
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. # Required changes for translating the NLS DLL: three lines below.
  18. #
  19.  
  20. #
  21. # First define the suffixes for files which NMAKE will work on.
  22. # .SUFFIXES is a reserved NMAKE keyword ("pseudotarget") for
  23. # defining file extensions that NMAKE will recognize.
  24. #
  25.  
  26. .SUFFIXES: .html .ipf .hlp .inf
  27.  
  28. #
  29. # Now set up a few environment variables.
  30. #
  31.  
  32. # This is the language code for the language that the NLS DLL
  33. # will support. Change this to a different language code, and
  34. # the makefile will support your langauge.
  35. LANGUAGE = 001
  36.  
  37. # Change this to the full path of the HTML2IPF utility.
  38. HTML2IPF = ..\..\tools\html2ipf046.cmd
  39.  
  40. # Change this to the directory where the output file (INF)
  41. # should be copied to.
  42. !ifndef XFOLDERPATH
  43. !error The environment variable XFOLDERPATH is not defined. Terminating.
  44. !endif
  45. COPYTO = $(XFOLDERPATH)
  46.  
  47. #
  48. # Now define inference rules for what to do with certain file
  49. # types, based on their file extension.
  50. # The syntax we need here is ".fromext.toext".
  51. # So whenever NMAKE encounters a .toext file, it
  52. # executes what we specify here.
  53. #
  54.  
  55. .html.ipf:
  56.         $(HTML2IPF) xfldr$(LANGUAGE).html
  57.  
  58. .ipf.inf:
  59.         ipfc /inf $*.ipf $*.inf
  60.  
  61. #
  62. # Now define inference rules for the different file types.
  63. #
  64.  
  65. $(COPYTO)\xfldr$(LANGUAGE).inf: xfldr$(LANGUAGE).inf
  66.         cmd.exe /c copy $(@B).inf $(COPYTO)
  67.  
  68. xfldr$(LANGUAGE).inf: $*.ipf
  69.  
  70. xfldr$(LANGUAGE).ipf: *.html *.gif *.bmp
  71.  
  72.  
  73.