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 >
Text File  |  1999-02-05  |  2KB  |  76 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. # THIS HAS CHANGED WITH V0.84.
  39. HTML2IPF = ..\tools\html2ipf.cmd
  40.  
  41. # Change this to the directory where the output file (INF)
  42. # should be copied to.
  43. !ifndef XFOLDERPATH
  44. !error The environment variable XFOLDERPATH is not defined. Terminating.
  45. !endif
  46. COPYTO = $(XFOLDERPATH)
  47.  
  48. # DO NOT CHANGE THE FOLLOWING
  49.  
  50. #
  51. # Now define inference rules for what to do with certain file
  52. # types, based on their file extension.
  53. # The syntax we need here is ".fromext.toext".
  54. # So whenever NMAKE encounters a .toext file, it
  55. # executes what we specify here.
  56. #
  57.  
  58. .html.ipf:
  59.         $(HTML2IPF) xfldr$(LANGUAGE).html
  60.  
  61. .ipf.inf:
  62.         ipfc /inf $*.ipf $*.inf
  63.  
  64. #
  65. # Now define inference rules for the different file types.
  66. #
  67.  
  68. $(COPYTO)\xfldr$(LANGUAGE).inf: xfldr$(LANGUAGE).inf
  69.         cmd.exe /c copy $(@B).inf $(COPYTO)
  70.  
  71. xfldr$(LANGUAGE).inf: $*.ipf
  72.  
  73. xfldr$(LANGUAGE).ipf: *.html *.gif
  74.  
  75.  
  76.