Article View: comp.unix.programmer
Article #3712Re: make: making the binary name dependent on the source file name.
From: Ralf Fassel
Date: Thu, 03 Jan 2008 20:24
Date: Thu, 03 Jan 2008 20:24
16 lines
1426 bytes
1426 bytes
* 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'
Technical Details
Message-ID:
<ygaabnm64jg.fsf@gepard2.akutech-local.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<c1b4736d-b971-4d80-9025-08b6c24d113f@e10g2000prf.googlegroups.com> <ygaejcz56aj.fsf@gepard2.akutech-local.de> <55aae7f8-70db-4cd8-8702-ce929a028cd7@x69g2000hsx.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fc89c,bf5d4a540fd6d2ce X-Google-Thread: 109f73,bf5d4a540fd6d2ce X-Google-Attributes: gidfc89c,gid109f73,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ralf Fassel <ralfixx@gmx.de> Newsgroups: comp.unix.programmer,gnu.utils.help Subject: Re: make: making the binary name dependent on the source file name. Date: Thu, 03 Jan 2008 21:24:35 +0100 Lines: 16 Message-ID: <ygaabnm64jg.fsf@gepard2.akutech-local.de> References: <c1b4736d-b971-4d80-9025-08b6c24d113f@e10g2000prf.googlegroups.com> <ygaejcz56aj.fsf@gepard2.akutech-local.de> <55aae7f8-70db-4cd8-8702-ce929a028cd7@x69g2000hsx.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net RdSCq76aOzvgc5sjUOdu5QwuranAfX2+E2UYMZqDHLxPpYfhM= Cancel-Lock: sha1:y6g8OM6oaBo2zCGi0MF5VvQETFQ= sha1:C4QLHf7lrNQjMJyCwQtltq2A1nA= User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (linux)