bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make: no easy way to tell $+, $^ to not strip leading ./


From: Dan Jacobson
Subject: make: no easy way to tell $+, $^ to not strip leading ./
Date: 12 Apr 2002 04:48:49 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

In makefile I do
%.bian_5level: ./tone_change.pl %.ben_5level
        $+>$@
which results in
tone_change.pl 7-06.ben_5level>7-06.bian_5level

Can't I get make to just give me my prerequisites back like I had
written them, leading ./ and all?  It has analyzed the ./ off of my
command's name.  I had put it there because I don't want "." on my
$PATH.

I mean $+ is even supposed to preserve duplicates... anyways how can
one keep make from tinkering with $+, $^ or whatever?  Yes, I was just
using $+ to avoid writing the same word twice:
%.bian_5level: %.ben_5level ./tone_change.pl 
        ./tone_change.pl $<>$@
I suppose I will have to be happy with that, or do
Z=./tone_change.pl #to not remove ./   sheesh
%.bian_5level: %.ben_5level $Z
        $Z $<>$@
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]