我有一个像这样的文件夹结构:
./Makefile
./template
./template/Makefile
./template/html/
./template/html/Makefile
./template/latex/
./template/latex/Makefile
./template/latex/foo/
./template/latex/foo/Makefile
./template/latex/bar/
./template/latex/bar/Makefile
./... # a lot more
(文件夹结构可能嵌套更多)。
如何在不对 Makefileall
路径进行硬编码的情况下调用 ./template/latex/bar/ Makefile(其中的目标)?
最好的情况是能够这样称呼它:
make latex/bar # for the latex/bar template
make latex # for all latex templates
make html # for all html templates
make # for all templates