Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!hsdndev!cmcl2!adm!news From: XITIJSCH%DDATHD21.BITNET@cunyvm.cuny.edu Newsgroups: comp.unix.questions Subject: Re: Makefile for Compressed files (.o.Z) Message-ID: <26546@adm.brl.mil> Date: 12 Apr 91 10:27:42 GMT Sender: news@adm.brl.mil Lines: 28 > I've been trying to create a makefile which automatically uncompresses > 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 > tried adding .o.Z to the SUFFIXES list, but that doesn't seem > to help at all. Ever tried cake? There you can write something like: %.o.Z: %.o uncompress %.o Where % is substituted by your file name (it's an ``unbound part'' of this rule). cake is available at gatekeeper.dec.com in directory pub/case. -- Joachim =========================================================================== Joachim Schrod Email: xitijsch@ddathd21.bitnet Computer Science Department Technical University of Darmstadt, Germany