[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: CXX-DEV: RE: make problem
From: "Veygel, Mario" <mario.veygel () hp ! com>
Date: 2008-04-09 13:10:20
Message-ID: 1D965D8892DB34459EC3EF1E98F763580D20DE4D5C () G1W0479 ! americas ! hpqcorp ! net
[Download RAW message or body]
> > What's problem about the $*? (and $< is also null)
> > For example
> > #cat a1.mk
> > a1: a1.o
> > @echo "compile a1..."
> > aCC -Ae -c $*.c
> > # make -f a1.mk a1
> > compile a1...
> > aCC -Ae -c .c
> > aCC: error 1913: `.c' does not exist or cannot be read
> > *** Error exit code 1
>
> From man make:
>
> $* The macro $* is the current target name
> with the suffix
> deleted. It is evaluated only for
> inference rules.
>
> Your target is a1 which has no suffix. The manpage doesn't
> say what it would do if there is no suffix. Looks like when
> trying to delete the nonexistent suffix, it deletes a1 instead.
BTW, your rule is not an inference rule. Infererence rules are e.g.
.c:
.c.o:
So $* may not work anyway here.
Mario
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic