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

Ralf Fassel <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
* Ido Yehieli <[email protected]>
| 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'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.