Quoting Malte's comment on a different issue
(https://bitbucket.org/jendrikseipp/downward/pull-requests/58/issue535/diff#comment-24255752):
"That would work, but I think it would be nicer to change the behaviour to the following (not necessarily now):
1. Only specify the basename (without .cc or .h).
2. If .cc exists, add it. If .h exists, add it. If neither exists, complain.
This would make the "magic" a bit more consistent (.h and .cc would be treated equally, and planner.cc wouldn't
need a special case), and we also wouldn't need to change the Makefile when we decide to add or remove a *.cc
file.
Also, and perhaps more importantly, there are currently many cases where we have a *.h file and don't need it.
This is mainly true for plug-ins (in the Fast Downward sense), which usually only depend on other things, but
nothing depends on them."
|