help-make
[Top][All Lists]
Advanced

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

$(BINFILES) : $(notdir $@)


From: Albert D. Cahalan
Subject: $(BINFILES) : $(notdir $@)
Date: Sat, 12 Oct 2002 03:57:04 -0400 (EDT)

Suppose $(BINFILES) is a list of files such as:
/bin/foo /sbin/bar /usr/bin/baz

I need to make each one of those depend on the program,
so that the program will be compiled before I try to
install it. None of these work:

$(BINFILES) : % : $(notdir %)
        $(install) --mode a=rx --strip $(notdir $@) $@

$(BINFILES) : $(notdir $@)
        $(install) --mode a=rx --strip $(notdir $@) $@

$(BINFILES) : $(@F)
        $(install) --mode a=rx --strip $(notdir $@) $@
 
How can I write this rule?




reply via email to

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