Using a dmd.conf configuration file per build directory, and using %@P%
special variable, now it's possible to build the project by using the make
command directly. For example:
make -f dmd-posix.mak
--- /dev/null
+[Environment]
+DFLAGS="-I%@P%/../../import"
--- /dev/null
+[Environment]
+DFLAGS="-I%@P%../../common" "-I%@P%/../../../import"
[Environment]
-DFLAGS="-I%HOME%/common" "-I%HOME%/../import"
+DFLAGS="-I%@P%/common" "-I%@P%/../import"
--- /dev/null
+[Environment]
+DFLAGS="-I%@P%../../common" "-I%@P%/../../../import"