mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 18:29:27 +02:00
+ CHECKDEPEND var to check if packages are up to date
This commit is contained in:
parent
0d6bc08f63
commit
79f7263c3c
File diff suppressed because it is too large
Load Diff
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user