Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!mahendo!wlbr!voder!berlioz.nsc.com!desktop!nelson From: nelson@desktop.uiuc.edu (Taed Nelson) Newsgroups: comp.unix.questions Subject: Makefile for Compressed files (.o.Z) Message-ID: <1991Apr8.194733.17653@berlioz.nsc.com> Date: 8 Apr 91 19:47:33 GMT Sender: news@berlioz.nsc.com Reply-To: nelson@desktop.uiuc.edu (Taed Nelson) Organization: PLD Software Group, National Semiconductor Corporation Lines: 17 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. It seems that this must have been done before -- anyone know how to do it? An example will suffice. Thanks!