Newsgroups: comp.unix.wizards Path: utzoo!utgpu!watserv1!watcgl!idallen From: "Ian! D. Allen [CGL]" Subject: Why do double-colon MAKE targets with no dependencies always get made? Message-ID: <1990May27.034130.1096@watcgl.waterloo.edu> Sender: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL]) Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada Date: Sun, 27 May 90 03:41:30 GMT Lines: 39 % cat Makefile foo: echo "$@ updated by '$?'" bar:: echo "$@ updated by '$?'" % touch foo bar ; make foo bar `foo' is up to date. echo "bar updated by ''" bar updated by '' This is annoying. I can't see the utility of this, and it prevents me from writing this cleanly: target:: target:: some files MIT has code in their X11 Imake/Makefile:: target to work around this bug. I want Mr.GnuMake to fix the bug, but he insists on Unix compatibility: From: Roland McGrath Subject: Re: possible GNU Make bug Ask Athena if they the change you suggest would be good for use in conjunction with Imake. If they say so, I'll change it. What say the Wizards? Am I missing something? The kludge work-around is to use: target:: target which fools make into doing the right thing. -- -IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu [129.97.128.64] Computer Graphics Lab/University of Waterloo/Ontario/Canada