🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Skip Montanaro Thu, 14 Dec 1989 01:03
Help removing circular Make dependencies
#1671
Author: Skip Montanaro
Date: Thu, 14 Dec 1989 01:03
26 lines
1153 bytes
I know this is a bug list, but there is no question list for GNU Make, so
here goes:

I have the following Makefile:

	FILES = foo bar

	.PHONY : compress uncompress Makefile

	compress : $(FILES:%=%.Z)

	uncompress : $(FILES)

	% : %.Z
		uncompress $@

	%.Z : %
		compress $<

There is an obvious circularity in my pattern rules, but it's also pretty
obvious (at least to me, not to Make) that on any given Make invocation I'd
only go in one direction. Is there a way I can express the dependencies to
get the desired behavior? If it's any help, I'm using GNU Make 3.57 under
SunOS 4.

Skip (montanaro@crdgw1.ge.com)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads