[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [st-hackers] Re: makefile mysteries



On Sat, 8 Sep 2001, guy keren wrote:

> > oh, this could be exactly what i need (couldn't find something like this
> > earlier). let's see... nope, cant find it. where exactly did you see it?
> > it's not under 'Functions' or in the index. i'm using the info pages
> > from make-3.77.
>
> here is a makefile that works properly:

small but important correction - it works properly on make 3.78.1. it
_does not_ work on make 3.77.

> ----------------------------------------------------------------
> ifeq "$(KERNEL_DIR)" ""
>   $(error "'KERNEL_DIR' variable not defined. Please look at 'COMPILING'")
> else
>   $(shell /bin/echo "hello")
> endif
>
> all:
>         echo "blu blu; KERNEL_DIR - $(KERNEL_DIR)"
> -----------------------------------------------------------------
>
> run it when 'KERNEL_DIR' is not defined, and see it 'Stop'.
>
> [choo@simey ~/test]$ make --version
> GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.

exactly what i was looking for, but since it doesn't work on make 3.77,
we can't use it. i'll have to stick with my subotimal solution, for now.

[can someone else using make 3.77 (or earlier) also verify that it
doesnt work for them?]
-- 
mulix

http://www.advogato.com/person/mulix
http://www.sf.net/projects/syscalltrack



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il