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



_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to