I want to remove the root directory of a targeted path in a Makefile.
Let say the target is like
OUTPUT = output
PATH = $(OUTPUT)/a.txt
Later when building the target, this works
echo $(@:output/%=%)
>>> a.txt
But not if I use the var $OUTPUT instead of the string:
echo $(@:$(OUTPUT)/%=%)
>>> output/a.txt