|
From: | Greg Ortiz |
Subject: | Problem with substitution reference |
Date: | Wed, 24 Sep 2008 13:20:05 -0700 |
Getting a 'target pattern contains no '%' from running a simple make. Running make from OpenSuse using GNU make 3.8.1. Any help would be greatly appreciated.
Makefile
------------------
hello:
echo $@
make -f include.mk hello
include.mk
------------------
hello: hello.o
cc -c hello.c
hello.o: $${@:%.o=%.c}
cc -c hello.c
Greg CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is prohibited and may violate applicable laws including the Electronic Communications Privacy Act. If you are not the intended recipient, please contact the sender and destroy all copies of the communication. |
[Prev in Thread] | Current Thread | [Next in Thread] |