From owner-freebsd-hackers Wed Oct 30 20:04:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA22987 for hackers-outgoing; Wed, 30 Oct 1996 20:04:11 -0800 (PST) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id UAA22980 for ; Wed, 30 Oct 1996 20:04:09 -0800 (PST) Received: from scanner.worldgate.com by agora.rdrop.com with smtp (Smail3.1.29.1 #17) id m0vInvm-0008uIC; Wed, 30 Oct 96 19:36 PST Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.7.5/8.7.3) with UUCP id UAA06065 for hackers@freebsd.org; Wed, 30 Oct 1996 20:32:50 -0700 (MST) Received: from localhost (marcs@localhost) by alive.ampr.ab.ca (8.7.5/8.7.3) with SMTP id UAA09973 for ; Wed, 30 Oct 1996 20:32:36 -0700 (MST) Date: Wed, 30 Oct 1996 20:32:35 -0700 (MST) From: Marc Slemko X-Sender: marcs@alive.ampr.ab.ca To: hackers@freebsd.org Subject: BSD make oddities? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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