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

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

Re: make: making the binary name dependent on the source file name.


From: Ralf Fassel
Subject: Re: make: making the binary name dependent on the source file name.
Date: Thu, 03 Jan 2008 21:24:35 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (linux)

* Ido Yehieli <Ido.Yehieli@gmail.com>
| make: Nothing to be done for `all'.

Yup.  You need to have the executables already present for that recipe
to work :-/

Replace the recipe with

  all: $(basename $(wildcard somefile.*.c))

This collects all somefile.*.c files, strips off the suffix and tries
to build the resulting targets (for .c, the corresponding rule is
built-in).

HTH
R'


reply via email to

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