mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:06:18 +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
|
endif
|
||||||
|
|
||||||
export FPC FPC_VERSION
|
export FPC FPC_VERSION
|
||||||
|
# CHECKDEPEND should not be exported
|
||||||
|
# This should limit multiple checks
|
||||||
|
unexport CHECKDEPEND ALL_DEPENDENCIES
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# FPC Target Detection
|
# FPC Target Detection
|
||||||
@ -1147,7 +1150,7 @@ fpc_examples: all $(EXAMPLEFILES) $(addsuffix _all,$(TARGET_EXAMPLEDIRS))
|
|||||||
|
|
||||||
.PHONY: fpc_all fpc_smart fpc_debug fpc_release
|
.PHONY: fpc_all fpc_smart fpc_debug fpc_release
|
||||||
|
|
||||||
$(FPCMADE): $(ALLTARGET)
|
$(FPCMADE): $(ALL_DEPENDENCIES) $(ALLTARGET)
|
||||||
@$(ECHOREDIR) Compiled > $(FPCMADE)
|
@$(ECHOREDIR) Compiled > $(FPCMADE)
|
||||||
|
|
||||||
fpc_all: $(FPCMADE)
|
fpc_all: $(FPCMADE)
|
||||||
|
@ -564,6 +564,11 @@ implementation
|
|||||||
FOutput.Add('else');
|
FOutput.Add('else');
|
||||||
FOutput.Add(unitdirvar+'=$('+packdirvar+')');
|
FOutput.Add(unitdirvar+'=$('+packdirvar+')');
|
||||||
FOutput.Add('endif');
|
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 }
|
{ Package dir doesn't exists, check unit dir }
|
||||||
FOutput.Add('else');
|
FOutput.Add('else');
|
||||||
FOutput.Add(packdirvar+'=');
|
FOutput.Add(packdirvar+'=');
|
||||||
@ -860,7 +865,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$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
|
* -r option to process target dirs also
|
||||||
* default changed to build only for current target
|
* default changed to build only for current target
|
||||||
* removed auto building of required packages
|
* removed auto building of required packages
|
||||||
|
Loading…
Reference in New Issue
Block a user