Makefile find in array -


If I have something like this:

  project + = path / copy / first project + = Path / per / second project + = path / to / third   

and

  LIBS + lib_output / first.lib LIBS + = lib_output / second Side LIBS + = lib_output / third.lib   

I get the project from PROJECTS + = path / to / first to LIBS + = Lib_output / first.lib ? Is a hashp available in Mathepile? Or the possibility to search in the array?

You can simulate lookup tables using the fact that they have the variable name dot and Forward Slash may include:

  project + = path / per / first project + = path / per / second project + = path / per / third LIBS + = lib_output / first.lib LIBS + = lib_output / second.lib LIBS + = lib_output / third.lib lookup.path / to / first: = lib_output / first.lib lookup.path / to / second: = lib_output / second.lib lookup. Path / to / Third: = lib_output / third.lib path: = path / to / first $ (info $ {path} - & gt; $ {lookup. $ {Path}}) path: = path / p Rati / second $ (info $ {path} - & gt; $ {lookup. $ {Path}} Path: = path / from / third $ (info $ {path} -> $ {lookup. $ {Path }})   

Output: $ path / in / before - & gt; Lib_output / first.lib path / per / sec - & gt; Lib_output / second.lib path / per / third - & gt; Lib_output / third.lib

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -