Re: Immediately exiting (with return code zero) from Makefile?
From: Cameron Simpson (cs_at_zip.com.au)
Date: 01/28/04
- Previous message: Ian Zimmerman: "Re: [Q] Immediately exiting (with return code zero) from Makefile?"
- In reply to: Ian Zimmerman: "Re: [Q] Immediately exiting (with return code zero) from Makefile?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jan 2004 07:38:33 +1100 To: comp.unix.misc@usenet, comp.os.linux.questions@usenet
On 10:49 28 Jan 2004, Ian Zimmerman <bayard@newsguy.com> wrote:
| You could write the top rule of M1/Makefile like this:
|
| all:
| if test -e ../M2/Makefile ; then $(MAKE) m1.a ; fi
You might find that fails and you need to rephrase like this:
all:
test ! -e ../M2/Makefile || $(MAKE) m1.a
i.e. success if no M2/makefile or success if $(MAKE) succeeds.
-- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ Men are not hanged for stealing horses, but that horses may not be stolen. - Lord Halifax, Works
- Previous message: Ian Zimmerman: "Re: [Q] Immediately exiting (with return code zero) from Makefile?"
- In reply to: Ian Zimmerman: "Re: [Q] Immediately exiting (with return code zero) from Makefile?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|