+ CHECKDEPEND var to check if packages are up to date

This commit is contained in:
pierre 2002-02-28 17:03:47 +00:00
parent 0d6bc08f63
commit 79f7263c3c
3 changed files with 1781 additions and 1708 deletions

File diff suppressed because it is too large Load Diff

View File

@ -162,6 +162,9 @@ FPC_VERSION:=$(shell $(FPC) -iV)
endif
export FPC FPC_VERSION
# CHECKDEPEND should not be exported
# This should limit multiple checks
unexport CHECKDEPEND ALL_DEPENDENCIES
#####################################################################
# FPC Target Detection
@ -1147,7 +1150,7 @@ fpc_examples: all $(EXAMPLEFILES) $(addsuffix _all,$(TARGET_EXAMPLEDIRS))
.PHONY: fpc_all fpc_smart fpc_debug fpc_release
$(FPCMADE): $(ALLTARGET)
$(FPCMADE): $(ALL_DEPENDENCIES) $(ALLTARGET)
@$(ECHOREDIR) Compiled > $(FPCMADE)
fpc_all: $(FPCMADE)

View File

@ -564,6 +564,11 @@ implementation
FOutput.Add('else');
FOutput.Add(unitdirvar+'=$('+packdirvar+')');
FOutput.Add('endif');
FOutput.Add('ifdef CHECKDEPEND');
FOutput.Add('$('+packdirvar+')/$(FPCMADE):');
FOutput.Add(#9'$(MAKE) -C $('+packdirvar+') $(FPCMADE)');
FOutput.Add('override ALL_DEPENDENCIES+=$('+packdirvar+')/$(FPCMADE)');
FOutput.Add('endif');
{ Package dir doesn't exists, check unit dir }
FOutput.Add('else');
FOutput.Add(packdirvar+'=');
@ -860,7 +865,10 @@ implementation
end.
{
$Log$
Revision 1.20 2002-01-27 21:42:35 peter
Revision 1.21 2002-02-28 17:03:47 pierre
+ CHECKDEPEND var to check if packages are up to date
Revision 1.20 2002/01/27 21:42:35 peter
* -r option to process target dirs also
* default changed to build only for current target
* removed auto building of required packages