Makefile for Compressed files (.o.Z)

Taed Nelson nelson at desktop.uiuc.edu
Tue Apr 9 05:47:33 AEST 1991


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!



More information about the Comp.unix.questions mailing list