home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / doc / makefile < prev    next >
Makefile  |  2002-02-26  |  2KB  |  72 lines

  1. #
  2. # Makefile for XWorkplace 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-2002 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 XWorkplace 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. FILESTEM = progref
  33.  
  34. # This is the language code for the language that the NLS DLL
  35. # will support. Change this to a different language code, and
  36. # the makefile will support your langauge.
  37.  
  38. # Change this to the full path of the HTML2IPF utility.
  39. HTML2IPF = ..\001\tools\html2ipf.cmd
  40.  
  41. # Change this to the directory where the output file (INF)
  42. # should be copied to.
  43. COPYTO = ..
  44.  
  45. #
  46. # Now define inference rules for what to do with certain file
  47. # types, based on their file extension.
  48. # The syntax we need here is ".fromext.toext".
  49. # So whenever NMAKE encounters a .toext file, it
  50. # executes what we specify here.
  51. #
  52.  
  53. .html.ipf:
  54.         $(HTML2IPF) $(FILESTEM).html
  55.  
  56. .ipf.inf:
  57.         ipfc /inf $*.ipf $*.inf
  58.  
  59. #
  60. # Now define inference rules for the different file types.
  61. #
  62.  
  63. $(COPYTO)\$(FILESTEM).inf: $(FILESTEM).inf
  64.         cmd.exe /c copy $(@B).inf $(COPYTO)
  65.         cmd.exe /c del $(@B).inf
  66.  
  67. $(FILESTEM).inf: *.ipf
  68.  
  69. $(FILESTEM).ipf: *.html
  70.  
  71.  
  72.