🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #668

Re: make bug?

#668
From: Chip Salzenberg
Date: Fri, 22 Jan 1988 14:43
26 lines
1272 bytes
In article <292@dana.UUCP> worley@dana.UUCP (John Worley) writes:
>
>In make, it is possible to specify multiple dependency lines:
>
>       [example deleted]
>
>    Exactly zero or one of these can have an action...

This is only true for "normal" dependencies.  If you specify a dependency
with two colons instead of one, then you can have a different action for
each dependency line:

	# If bar1 is newer than foo, do this
	foo::   bar1
		echo bar1

	# If bar2 is newer than foo, do this
	foo::   bar2
		echo bar2

I've never had a need for this feature, but it seems like it should be
useful for _something_. :-)
-- 
Chip Salzenberg                 UUCP: "{codas,uunet}!ateng!chip"
A T Engineering                 My employer's opinions are a trade secret.
       "Anything that works is better than anything that doesn't."
Technical Details
Message-ID: <158@ateng.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!mtuxo!mtune!codas!ateng!chip
References: <2979@ncrcae.Columbia.NCR.COM> <292@dana.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!homxb!mtuxo!mtune!codas!ateng!chip
From: chip@ateng.UUCP (Chip Salzenberg)
Newsgroups: comp.bugs.sys5,comp.unix.wizards
Subject: Re: make bug?
Message-ID: <158@ateng.UUCP>
Date: 22 Jan 88 14:43:24 GMT
References: <2979@ncrcae.Columbia.NCR.COM> <292@dana.UUCP>
Reply-To: chip@ateng.UUCP (Chip Salzenberg)
Organization: A T Engineering, Tampa, FL
Lines: 26