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

Re: [st-hackers] Re: makefile mysteries




On Sat, 8 Sep 2001, mulix 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:

----------------------------------------------------------------
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.

--
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=================================================================
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