我有一个make项目,其中包含两个实际目标,一个测试套件和该项目的可执行文件。Make:如何生成除一个以外的所有.c文件的列表
建立这些我想规则是这样的:
testsuite: *.c (except executable.c) *.h
clang ... *.c (except executable.c) -o testsuite
executable: *.c (except testsuite.c) *.h
clang ... *.c (except testsuite.c) -o executable
什么是这个正确的语法,如果可能的话?
就像一个想法;你可以把你的.c文件放在一个单独的目录中,不包括这两个目标。 – crawton 2015-03-13 13:27:37