Ensure that a fake compilation database is generated for headers on targ...

...ets.

Header files specified on a target won't be added to compile_commands.json
but we might want to run clang-tidy on them. Add them to
${TARGET}_compile_commands/compile_commands.json and run clang-tidy with that.