bug-make
[Top][All Lists]
Advanced

[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:1.8.0.5) Gecko/20060725 SUSE/1.5.0.5-0.1 Firefox/1.5.0.5

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
PARTICULAR PURPOSE.

$ 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
compiles:

.SUFFIXES:
.SUFFIXES: .o

%.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:

  <http://savannah.gnu.org/bugs/?18369>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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