# ***************************** Module Header ******************************* # # Module Name: makefile # # makefile to copy modified source files to the appropriate compile # subdirectories. All files of this subdirectory tree are copied unmodified. # # Copyright (c) Netlabs EPM Distibution Project 2002 # # $Id$ # # =========================================================================== # # This file is part of the Netlabs EPM Distribution package and 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 # Netlabs EPM Distribution. This library 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. # # *************************************************************************** # --- extend EPMPATH and search macro sources in subdirectory # (MACRODIR used by project.in) MACRODIR=macros EPMPATH=$(MACRODIR) # --- set DPATH to nothing in order to prevent to include # any my*.e files DPATH=; # --- include main definitions BASEDIR=..\.. !include $(BASEDIR)\rules.in # --- read makefile configuration !include $(BASEDIR)\configure.in SCRIPTFILE=$(STEM).wis WPIFILE=$(STEM)$(VERSION).wpi # --- definitions for this makefile FILESTOCLEAN=\ $(SRCCOPY_FLAGFILE) # --- List for standalone modules # This reads the entries in exfiles.lst. !if [@queryemodlist $(BASEDIR)\src\netlabs\ex\exfiles.lst EMODULELIST > $(CMPDIR)\queryemod.out] !endif !include $(CMPDIR)\queryemod.out !if [@del $(CMPDIR)\queryemod.out >NUL 2>&1] !endif # --- List for toolbar modules # This reads the entries in actions.lst. !if [@queryemodlist $(BASEDIR)\src\netlabs\ex\actions.lst TBEMODULELIST > $(CMPDIR)\queryemod.out] !endif !include $(CMPDIR)\queryemod.out !if [@del $(CMPDIR)\queryemod.out >NUL 2>&1] !endif # --- pseudotargets ALL: CHECKSRC SRCCOPY $(EMODULELIST) $(TBEMODULELIST) $(CMPHLPDIR)\COPYING CLEAN: @echo cleaning up files ... -@for %%a in ($(FILESTOCLEAN)) do @del %%a /N >NUL 2>&1 @kd $(CMPINSTDIR) EPMEX: $(CMPEXDIR)\epm.ex CHECKSRC: @_srccopy CHECK $(SRCCOPY_FLAGFILE) $(BASEDIR)\src\netlabs SRCCOPY: $(SRCCOPY_FLAGFILE) # ---- check if sources from srcdir are updated $(SRCCOPY_FLAGFILE): _srccopy COPY $(SRCCOPY_FLAGFILE) $(BASEDIR)\src\netlabs $(CMPDSTDIR) $(CMPHLPDIR)\COPYING: @copy ..\ipf\COPYING $(CMPHLPDIR) $(CMPEXDIR)\epm.ex: macros\*