bug-make
[Top][All Lists]
Advanced

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

SUFFIXES bug


From: Patrick Craig
Subject: SUFFIXES bug
Date: Tue, 08 May 2001 14:03:36 +0900

Hello

I'm using:

GNU Make version 3.79.1
Built for i686-pc-cygwin

My project has some autogenerated C files. I use a different suffix for
these
files (.agc) so that I can delete them in the clean rule (rm -f *.agc).
Here is a simplified Makefile:

.SUFFIXES: .agc

all::boot test.o

boot::
 cp test.pre test.agc

#test.agc::

.agc.o:
 gcc -c -xc $?

clean::
 rm -f test.agc test.o

If I have just the test.pre file and run make, it generates test.agc and
then
says it doesn't know how to make test.o. If I then run make again it
correctly generates test.o. If I uncomment out the empty test.agc rule,
make works correctly, generating both test.agc and test.o in one pass.
Microsoft nmake works correctly even without the test.agc rule.

Patrick





reply via email to

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