On Saturday 28 July 2007, "Kent Fredric" <[EMAIL PROTECTED]> wrote 
about 'Re: [gentoo-user] Running Scripts':
> On 7/29/07, Uwe Thiem <[EMAIL PROTECTED]> wrote:
> > On 28 July 2007, Kent Fredric wrote:
> > > try a plain old bash script and see if that works, and try this and
> > > see if it works:
> > >
> > > cat >> testrun.c
> > > #include <stdio.h>
> > > int main(int argc, int* argv)
> > > {
> > >   printf("helloworld");
> > > }
> > > ( press ctrl+d here )
> > >
> > > make testrun
> >
> > Without writing a Makefile, make won't build the program. ;-)
>
> funny, it did for me :P
>
> $ls -l testrun.c Makefile
> ls: cannot access Makefile: No such file or directory
> -rw-r--r-- 1 devious users 77 2007-07-29 00:24 testrun.c
>
> $make testrun
> cc     testrun.c   -o testrun

That cool, but don't count on it to work on all makes.

I'm fairly sure an empty Makefile is valid, since there already suffix 
rules required by the standard -- there's just no default target.  I guess 
GNU make takes that to the logical conclusion and lets you run entirely 
without a Makefile as long as you specify a target.

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
[EMAIL PROTECTED]                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to