私のMakefileに変数を作成したい。これはifeq-statementで比較されます。しかし、私の変数名がコマンドのように扱われます。変数をコマンドとして扱い、括弧付きのifeq-statement構文エラー
make: dif: Command not found
私が持っている:
dif := $(shell diff file1 <(./myprog < file2))
私はいくつかのマニュアルやテストを読んでいましたが、何も働きました。それの私の非作用効果は上記のように見られます。
EDIT:
は、いくつかの進歩を遂げたが、第二の問題は、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