makefile - automake passing parameters to subdirs -


i have makefile.am create makefile lauching makes in subdirectories contain external code, content just

subdirs=foo1 foo2 foo3

in foo1, there makefile (which compiles fortran , c code) not want write file makefile.am in directory, execute

make use_thread=0

in directory foo1 during build.

any idea how tell automake pass use_thread=0 make command in foo1?

you should not use subdirs non-automake subdirectories. instead, create own rule:

foo1-build:     -$(make) use_thread=0 whatever-target 

you need wire in right -local targets clean , uninstall of course.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -