make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Query regarding make error [target pattern contains no `%']


From: jgrant
Subject: RE: Query regarding make error [target pattern contains no `%']
Date: Sun, 18 Jan 2004 19:30:46 -0000

Hi Paul,

Thank you for the info.

There are two errors I feel are unclear. could they be clarified/improved if
possible please.  I have two examples :


1.

makefile
------------
CC = ee-g++
LD = ee-g++

OBJS = "z:/test.o"
TARGET = test.elf

all: $(TARGET)

$(TARGET): $(OBJS)
        $(LD) $(OBJS) -o $@

%.cpp %.o:
        $(CC)  -c $< -o $*.o

----------

Having quotes around this OBJ causes the following error:

makefile3:10: *** target pattern contains no `%'.  Stop.

Does not indicate that the problem is actually the quotes.  Removing the
quotes lets it proccess ok.


2.
makefile
____________

CC = ee-g++
LD = ee-g++

OBJS = "z:/test1.o" \
        "z:/test2.o"

TARGET = test.elf

all: $(TARGET)

$(TARGET): $(OBJS)
        $(LD) $(OBJS) -o $@

%.cpp %.o:
        $(CC)  -c $< -o $*.o


--------------------

Having quotes around 2 objects causes this error. Similar to the above.

makefile3:12: *** multiple target patterns.  Stop.


If quotes are not suitable for OBJ, could a clearer error message be
displayed..?
These errors originate at line read.c:1141


Kind regards

Jonathan


> GNU make doesn't support ":" in pathnames.
> 
> You can try escaping it with "\" but I'm not sure that will work.
> 
> For more info about the DOS/Windows ports of GNU make please
> post to the address@hidden mailing list.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]