bug-make
[Top][All Lists]
Advanced

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

$@ documentation


From: Albert D. Cahalan
Subject: $@ documentation
Date: Sat, 12 Oct 2002 03:19:25 -0400 (EDT)

I have make 3.79.1.

This stuff starts off with $(BINFILES) being a list of
files to install, such as: /bin/foo /usr/bin/bar /sbin/baz

-------- this didn't work --------
$(BINFILES) : $(notdir $@)
        $(install) --mode a=rx --strip $(notdir $@) $@
---------------------------------

It seems make doesn't set $@ where I want it set.
That wasn't real obvious. I still don't see it in
the documentation. I got the install command running
without the executables being made, realized that
make thought there wasn't any prerequisite, and then
sat wondering WTF for quite a while. Then I try this:

------ also didn't work -------
$(BINFILES) : % : $(notdir %)
        $(install) --mode a=rx --strip $(notdir $@) $@
------------------------------

That won't do it either, for some really strange reason.
I'm told there's a circular dependency which gets dropped.
It's not real obvious that the "notdir" function isn't
going to do anything. Please document this (better).

It'd be mighty nice if somebody could fix my code too. :-)




reply via email to

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