# # Makefile to build progref.inf # # 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-2006 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 XWorkplace 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. # #@@changed V1.0.9 (2011-10-12) [rwalsh]: use h2i.exe rather than html2ipf.cmd # Say hello to yourself. !if [@echo +++++ Entering $(MAKEDIR)] !endif !include ..\config.in !include ..\make\setup.in # # 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. # FILESTEM = progref # files that provide substitutions for html entities PROGREF_ENTITIES=-iprogref-entities.h -i$(PROJECT_BASE_DIR)\001\entities.h # commandline for h2i.exe HTML2IPF = $(RUN_H2I) -s $(PROGREF_ENTITIES) # Change this to the directory where the output file (INF) # should be copied to. COPYTO = $(PROJECT_BASE_DIR) # # 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) $(FILESTEM).html .ipf.inf: ipfc /inf $*.ipf $*.inf # # Now define inference rules for the different file types. # $(COPYTO)\$(FILESTEM).inf: $(FILESTEM).inf $(COPY) $(@B).inf $(COPYTO) del $(@B).inf $(FILESTEM).inf: *.ipf $(FILESTEM).ipf: *.html