[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [st-hackers] Re: makefile mysteries
- To: guy keren <choo(at-nospam)actcom.co.il>
- Subject: Re: [st-hackers] Re: makefile mysteries
- From: mulix <mulix(at-nospam)actcom.co.il>
- Date: Sat, 8 Sep 2001 20:34:04 +0300 (IDT)
- Cc: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>, st-hackers <syscalltrack-hackers(at-nospam)lists.sourceforge.net>, <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <Pine.GSU.4.30_heb2.09.0109081811560.22476-100000@actcom.co.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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