We are using recursive make in our project. We also use a commercial embedded compiler (diab) with a FlexLM license.
We are currently adding license-borrowing as a dependency on the top-level targets in each directory.
.PHONY: target target: borrow_compiler $(TARGETLIB) $(RETURN_COMPILER) .PHONY : borrow_compiler borrow_compiler: @$(BORROW_COMPILER) 300
RETURN_COMPILER are scripts that acquires the license.
Our problem is that it takes a long time to build after a small change due to the communication with the license server for each recursive sub-directory.
Is there a better way to do this?
Linq query (“not in ”) on datatable
How to retrieve mapping table name for an Entity in Entity-framework in program
Does this linq query run on every iteration of the for-each loop?
Now the license is only borrowed in the top level make.
How does Linq work (behind the scenes)?
This is included by all levels of makefiles:.
Using Linq to create crosstab results [duplicate]
ifeq ($(MAKELEVEL),0) BORROW_COMPILER = python $(relativeToolPath)scripts/borrowCompilerLicence.py RETURN_COMPILER = python $(relativeToolPath)scripts/returnCompilerLicence.py else # true does nothing BORROW_COMPILER = true RETURN_COMPILER = endif
Linq to Entities, Table per Type and Nullable Foreign Key Relationships
Are LINQ queries above different LINQ providers possible?
Using LINQ to query flat text files with fixed-length records?