[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    BSD make oddities?
From:       Marc Slemko <marcs () znep ! com>
Date:       1996-10-31 3:32:35
[Download RAW message or body]

Take the below makefile.  Try a 'make vers.o'.  For me, it fails with a:

	make: don't know how to make vers.c. Stop

Running under 2.1.5, but I get the same thing with the make from
-current, although that doesn't mean too much since /usr/share/mk
could make a big difference.

If I remove the SRCS definition or the ${SRCS} from the foo line,
it works fine.  

Can anyone explain what is happening?  It looks like some interaction
between the default rules and the makefile, but I'm not exactly sure
where especially considering that if I remove the ${SRCS} dependency
from the foo target it works.

Makefile:
----------------------------------------
SRCS	= vers.c

vers.o:
	echo in vers.o

foo: ${SRCS}
	echo in foo

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic