Mail Archives: djgpp/1995/06/15/09:17:43
>
> 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 -