我想在我的Makefile中创建一个变量。它将在ifeq声明中进行比较。但我的变量名被当作命令:将变量视为命令和ifeq语句的语法错误(括号)
make: dif: Command not found
我:
dif := $(shell diff file1 <(./myprog < file2))
我一直在阅读一些手册和测试,但没有奏效。我的非工作效果如上所述。
编辑:
取得了一些进展,但第二个问题是IFEQ语句
$(eval dif = diff ./test0.out <(./rozwiązanie < ./test0.in)) // OK
ifeq ($(dif),null)
给出错误:
ifeq (diff ./test0.out <(./rozwiązanie < ./test0.in),null)
Syntax error: word unexpected (expecting ")")
Makefile:18: recipe for target 'test' failed