Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!deccrl!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!keele!pha21 From: pha21@seq1.keele.ac.uk (Braham Levy) Newsgroups: comp.unix.questions Subject: Re: Makefile for Compressed files (.o.Z) Summary: possible method of getting uncompressed files from compressed using make Message-ID: <1069@keele.keele.ac.uk> Date: 12 Apr 91 11:30:27 GMT References: <1991Apr8.194733.17653@berlioz.nsc.com> Organization: University of Keele, England Lines: 47 In article <1991Apr8.194733.17653@berlioz.nsc.com>, nelson@desktop.uiuc.edu (Taed Nelson) writes: > > 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 this must have been done before -- anyone know how > to do it? An example will suffice. > > Thanks! Here's somoething that worked for me <====Cut It Here====> # # Makefile to uncompress things # j braham levy april 1991 (all wrong reserved) # COMPRESS = compress UNCOMPRESS = uncompress obj: $(UNCOMPRESS) `ls *.o.Z` src: $(UNCOMPRESS) `ls *.c.Z` all: obj src <=====End Here======> the rest is plain sailing !! hope this is of use braham email: brahamlevy@uk.ac.keele (or similar) mail-mail : phone +44-782-621111x3943 j braham levy UDSP Lab, Electrical Engineering Group, Dept. of Physics, University of Keele, Keele, Staffs, UK.