[gnu.utils.bug] Help removing circular Make dependencies

montnaro@moose.crd.ge.com (Skip Montanaro) (12/14/89)

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)