ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) all: meson compile -C . 2>&1 | ${ROOT_DIR}/builddir/goc build: meson compile -C ${ROOT_DIR}/builddir test: @echo "../ex08.cpp:7:10: error: use of undeclared identifier \'oops\'" | ${ROOT_DIR}/builddir/goc