Artifact bd5f98820f5fbc1924523c707abda971982e5788adf229bc5107f59526c72bc6:
gmake always includes files relative to the current directory, while
bmake includes them relative to the current Makefile - and current
Makefile means the current include. However, bmake has a variable
.CURDIR that always points to the current directory, but is missing in
gmake. Thus, .CURDIR is just set to "." if it's not set and always in
the include, thus making it work with both, bmake and gmake.
by
js on
2014-05-06 20:35:07.
C Fix\sdependency\schecking\swith\sbmake\n\ngmake\salways\sincludes\sfiles\srelative\sto\sthe\scurrent\sdirectory,\swhile\nbmake\sincludes\sthem\srelative\sto\sthe\scurrent\sMakefile\s-\sand\scurrent\nMakefile\smeans\sthe\scurrent\sinclude.\sHowever,\sbmake\shas\sa\svariable\n.CURDIR\sthat\salways\spoints\sto\sthe\scurrent\sdirectory,\sbut\sis\smissing\sin\ngmake.\sThus,\s.CURDIR\sis\sjust\sset\sto\s"."\sif\sit's\snot\sset\sand\salways\sin\nthe\sinclude,\sthus\smaking\sit\swork\swith\sboth,\sbmake\sand\sgmake. D 2014-05-06T20:35:07 F autogen.sh 3936c3cbbf251d27d7c117d251754fdc5f701c87e682108b6eb123dffefc3a2e x F buildsys.mk.in 34e8d887f771787878331217786c3fd73ea211839e8a8f2048bd7e67097c0674 F configure.ac e1de09361e0047a5969c0b8d5faa9a71a7fec696ceeae834033f8f5783a6d6b4 F m4/buildsys.m4 3e6f9bdfdfeee8b613041f4ef762e1a3533457b8b84cdf9f2491040e2a548cf3 P 5e8c4f49fcea23e02a5edf1ee94c6aeeb8e32439ef2d104470c297b1dca81232 U js Z 4a952c2d7cdb345793d04cc1a0544f3d