D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Makefiles

 

Benjamin A'Lee wrote:
> 
> Unfortunately, GNU make can't do this, AFAIK.

GNU Make supports conditionals, see GNU make manual chapter 7.

There is no "exists" - the wildcard function will do the equivalent.

There are some "if file exists" type statements in the GNU Chess
makefile, similar ones are generated by automake in almost all GNU
projects, and most projects using the GNU build tools. The GNU tools use
various strategies for doing this, as Neil mentioned the script needs
some escaping, but the examples are copious.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html