Article View: comp.unix
Article #395Re: Makefile for Compressed files (.o.Z)
From: Dan Gill
Date: Tue, 16 Apr 1991 17:00
Date: Tue, 16 Apr 1991 17:00
28 lines
1205 bytes
1205 bytes
In article <4807@gumby.Altos.COM>, clp@gumby.Altos.COM (Chuck L. Peterson) writes: > > the appropriate file when it is needed. Let's limit the discussion > > to just .o files. > > > > It seems that one would want to define a rule to take *.o.Z files and > > make them into *.o files: > > .o.Z.o: > > uncompress $< > > but I think that the multiple '.'s in the rule confuses MAKE. I > Ever tried cake? There you can write something like: > %.o.Z: %.o > uncompress %.o > Joachim I have found that if you want do this that you need to escape the first `.', and then make is happy. Try this: .SUFFIXES: .SUFFIXES: .o\.Z .o .o\.Z.o: uncompress $< I have tried this on a sun3/60, and it works good. Dan
Technical Details
Message-ID:
<4815@gumby.Altos.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!mahendo!wlbr!voder!pyramid!altos!gumby!clpReferences:
<4807@gumby.Altos.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!mahendo!wlbr!voder!pyramid!altos!gumby!clp From: dan@systech.UUCP (Dan Gill) Newsgroups: comp.unix Subject: Re: Makefile for Compressed files (.o.Z) Summary: escape the . Message-ID: <4815@gumby.Altos.COM> Date: 16 Apr 91 17:00:39 GMT References: <4807@gumby.Altos.COM> Sender: clp@gumby.Altos.COM Lines: 28 Approved: clp@altos.com