[Top][All Lists]

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

[bug #18369] pattern rules don't work with spaces in filenames

From: anonymous
Subject: [bug #18369] pattern rules don't work with spaces in filenames
Date: Sun, 26 Nov 2006 01:28:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20060725 SUSE/ Firefox/

Follow-up Comment #2, bug #18369 (project make):

Hmm, short question, why does it work with make 3.80:

$ make380 -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

$ mkdir test
$ cd test
$ touch 'test with spaces.c'
$ make380 'test with spaces.o'
cc    -c -o test with spaces.o test with spaces.c
cc: cannot specify -o with -c or -S and multiple compilations
make380: *** [test with spaces.o] Error 1

at least the pattern matching works, and with the following Makefile it even


%.o: %.c
        $(CC) -o "$@" $(CFLAGS) -c "$<"

$ make380 'test with spaces.o'
cc -o "test with spaces.o"  -c "test with spaces.c"


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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