Path: utzoo!telly!philmtl!uunet!bu-cs!lll-winken!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!moose.crd.ge.com!montnaro From: montnaro@moose.crd.ge.com (Skip Montanaro) Newsgroups: gnu.utils.bug Subject: Help removing circular Make dependencies Message-ID: <8912140103.AA00485@moose.crd.Ge.Com> Date: 14 Dec 89 01:03:03 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: (Skip Montanaro) Distribution: gnu Organization: GNUs Not Usenet Lines: 26 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)