How to use environment varialbe PROGRAMFILES(X86) in a GNU makefile? -


i try use environment variable programfiles(x86) of windows 7 inside gnu makefile without success.

here minimal example:

$(info dir: $(programfiles(x86))) nop:     @echo x  

if execute makefile

dir: ) x 

while expected:

dir: c:\program files (x86) x 

any idea how use environment variable programfiles(x86) in gnu makefile?

i using gnu make version 4.1 on cygwin (and version 3.81 on native windows). know that there , environment variable "programfiles", need "programfiles(x86)"

etan came nice idea. did slight modification , thus, following works:

b1 := ( b2 := ) $(info dir: $(programfiles$(b1)x86$(b2)) ) nop:     @echo x  

however figured out more easy way: curly braces seem trick too:

$(info dir: ${programfiles(x86)} ) nop:     @echo x      

for both solutions important write programfiles(x86) instead of upper case programfiles(x86).


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -