[the start of a series... unfortunately]

Today's annoyance:: prequisites in gmake cannot contain colons.

Example:

[EMAIL PROTECTED]:~/tmp/colon> cat Makefile
SRC:=$(wildcard *.c)
OBJ:=$(patsubst %.c,%.o,$(SRC))
TARGET=myprog

all: $(OBJ)
        $(CC) $(LDFLAGS) -o $(TARGET) $(OBJ)

        %.o: %.c
                $(CC) $(CFLAGS) -c $<
[EMAIL PROTECTED]:~/tmp/colon> ls
Makefile  foo:bar.c
[EMAIL PROTECTED]:~/tmp/colon> make
Makefile:5: *** target pattern contains no `%'.  Stop.


Solution?  According to the gmake bug list, and I'm paraphrasing
slightly :: "Go fuck yourself".

http://www.mail-archive.com/[email protected]/msg03318.html

*sigh*  I'm off to go rename 10^8+ files...

- Rob
.

Reply via email to