www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/15/09:17:43

Subject: Re: Make and Vpath
To: branderhorst AT fgg DOT eur DOT nl (Erick Branderhorst)
Date: Thu, 15 Jun 1995 14:37:59 +0200 (MET DST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (user alias)
From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Reply-To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>

> 
> I'm new here,
> 
> Sorry if this is the wrong place to ask.
> 
> I want to use make to extract some files from a zip archive. The ziparchives
> are in a datadirectory (not the current).
> 
> example
> I type make hallo.bin
> 
> The makefile looks like this
> 
> vpath %.zip datadir
> 
> %.bin: %.zip
> 	$(unzip) $< $@
> 
> unzip was defined as the right extraction utility. This does not work.
> make is telling me:
> No rule to make target `hallo.bin' . Stop
> 
> Please help or suggest an other util. But I would prefer using GnuMake.
> Erick branderhorst AT hell DOT fgg DOT eur DOT nl
> 
I believe you gotta add the SUFFIXES .bin and .zip first:
.SUFFIXES:  .bin .zip

and define a rule:

.zip.bin:
	$(unzip) $*.zip $*.bin

(just a guess)

> 

 -Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
FreeBSD blues.physik.rwth-aachen.de 2.0-BUILT-19950606 FreeBSD 2.0-BUILT-1995
0606 #0: Tue Jun  6 19:13:32 MET DST 1995    kuku AT blues DOT physik DOT rwth-aachen DOT de
:/usr/src/sys/compile/BLUESGUS  i386

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019