How to get a shell environment variable in a makefile?
If you’ve exported the environment variable: export demoPath=/usr/local/demo you can simply refer to it by name in the makefile (make imports all the environment variables you have set): DEMOPATH = ${demoPath} # Or $(demoPath) if you prefer. If you’ve not exported the environment variable, it is not accessible until you do export it, or unless … Read more