Using make to borrow compiler license from license server?


Using make to borrow compiler license from license server?



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.

Like this:

.PHONY: target target: borrow_compiler $(TARGETLIB)     $(RETURN_COMPILER)  .PHONY : borrow_compiler borrow_compiler:     @$(BORROW_COMPILER) 300 

where BORROW_COMPILER and 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

1:



How to retrieve mapping table name for an Entity in Entity-framework in program
The solution was to look at MAKELEVEL.


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?

2:



Using LINQ to query flat text files with fixed-length records?
How about instead of doing it in the makefile, write a make program wrapper that first borrow the license, then calls make with arguments, and after make returns returns the license? You could check in the makefile that some special environment variable is set if you want to enforce that the make wrapper is used..



93 out of 100 based on 83 user ratings 1383 reviews