WORK_ROOT:=$(dir $(realpath GNUmakefile)) THIS_DIR:=$(dir $(abspath Makefile)) ifneq (${WORK_ROOT},${THIS_DIR}) RELATIVE_DIR:=$(shell sed -e 's|'${WORK_ROOT}'||' <<< ${THIS_DIR} ) endif include ${WORK_ROOT}repo.mk include Makefile include ${WORK_ROOT}site.mk include ${WORK_ROOT}common.mk