Gentoo Archives: gentoo-user

From: "Boyd Stephen Smith Jr." <bss03@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Running Scripts
Date: Sat, 28 Jul 2007 16:33:32
Message-Id: 200707281127.17406.bss03@volumehost.net
In Reply to: Re: [gentoo-user] Running Scripts by Kent Fredric
1 On Saturday 28 July 2007, "Kent Fredric" <kentfredric@×××××.com> wrote
2 about 'Re: [gentoo-user] Running Scripts':
3 > On 7/29/07, Uwe Thiem <uwix@××××.na> wrote:
4 > > On 28 July 2007, Kent Fredric wrote:
5 > > > try a plain old bash script and see if that works, and try this and
6 > > > see if it works:
7 > > >
8 > > > cat >> testrun.c
9 > > > #include <stdio.h>
10 > > > int main(int argc, int* argv)
11 > > > {
12 > > > printf("helloworld");
13 > > > }
14 > > > ( press ctrl+d here )
15 > > >
16 > > > make testrun
17 > >
18 > > Without writing a Makefile, make won't build the program. ;-)
19 >
20 > funny, it did for me :P
21 >
22 > $ls -l testrun.c Makefile
23 > ls: cannot access Makefile: No such file or directory
24 > -rw-r--r-- 1 devious users 77 2007-07-29 00:24 testrun.c
25 >
26 > $make testrun
27 > cc testrun.c -o testrun
28
29 That cool, but don't count on it to work on all makes.
30
31 I'm fairly sure an empty Makefile is valid, since there already suffix
32 rules required by the standard -- there's just no default target. I guess
33 GNU make takes that to the logical conclusion and lets you run entirely
34 without a Makefile as long as you specify a target.
35
36 --
37 Boyd Stephen Smith Jr. ,= ,-_-. =.
38 bss03@××××××××××.net ((_/)o o(\_))
39 ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
40 http://iguanasuicide.org/ \_/

Attachments

File name MIME type
signature.asc application/pgp-signature