Skip to content
Discussion options

You must be logged in to vote

The variable executable within Make should be what you need, i.e.

test: $(executable)

Also maybe relevant: AMReX has a feature that make print-VARIABLE prints the eventual value of that variable.
So make print-executable outputs:

Loading Exec/amrex/Tools/GNUMake/comps/gnu.mak...
Loading Exec/amrex/Tools/GNUMake/sites/Make.unknown...
executable is all1d.gnu.ex
    origin = file
     value = $(addsuffix $(optionsSuffix).ex, $(EBASE))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iljah
Comment options

Answer selected by iljah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants