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'