Makefile for Compressed files (.o.Z)

Braham Levy pha21 at seq1.keele.ac.uk
Fri Apr 12 21:30:27 AEST 1991


In article <1991Apr8.194733.17653 at berlioz.nsc.com>, nelson at 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 at 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.



More information about the Comp.unix.questions mailing list