🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Chuck L. Peterson Mon, 15 Apr 1991 16:26
Re: Makefile for Compressed files (.o.Z)
#391
Author: Chuck L. Peterson
Date: Mon, 15 Apr 1991 16:26
27 lines
1303 bytes
>   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
Re: Makefile for Compressed files (.o.Z)
#395
Author: Dan Gill
Date: Tue, 16 Apr 1991 17:00
28 lines
1205 bytes
In article <4807@gumby.Altos.COM>, clp@gumby.Altos.COM (Chuck L. Peterson) writes:
> >   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
> Ever tried cake? There you can write something like:
> %.o.Z: %.o
>         uncompress %.o
> Joachim

I have found that if you want do this that you need to escape the
first `.', and then make is happy.  

Try this:

.SUFFIXES:
.SUFFIXES: .o\.Z .o

.o\.Z.o:
	uncompress $<

I have tried this on a sun3/60, and it works good.

Dan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads