各位大牛好:
小弟自己写了要给Makefile,其中有一段如下:
test.h: test.dat
./file2code o test_flag $< $@
主要是想用file2code这个程序将test.dat生成为test.h,而"o test_flag"都是filecode程序需要的参数,但是运行的时候makefile会报错:
make: *** No rule to make target `test_flag', needed by `test.h'. Stop.
我那个test_flag只是传进file2code的一个参数,但Makefile应该是把test_flag当做一个依赖了,不知道这样理解对不对。不知道该怎么修改?