Generate compile_database.json from regular makefiles