[<<][c][>>][..]
Tue Dec 25 13:57:37 EST 2012

GNU Make subdir stem?

I've been using rules like this for a while:
$(BUILD)/%.o: $(SRC)/%.o

which works fine even if % is a subdirectory.

However, the following seems to insist to take only the file basename
as the stem:

%.o: $(SRC)/%.c

for foo/bar.o in SRC=/baz/src this expands to:

foo/bar.o: foo/baz/src/bar.c



[Reply][About]
[<<][c][>>][..]