[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Thu, 8 Nov 2007 13:15:54 +0000
"Robin Cornelius" <robin.cornelius@xxxxxxxxx> wrote:
> Arrg, having another braindead day
>
> How can i do a conditional make file as such :-
>
> distclean:
> if [ -f Makefile.qmake ]
> ${MAKE} -f Makefile.qmake distclean
> rm -f Makefile
> endif
That's a shell construct.
Drop the 'if' (from a Debian package):
[ ! -f ${stdbuilddir}/Makefile ] || make -C ${stdbuilddir} distclean
If no Makefile exists, ignore. Else use the Makefile for a distclean.
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
Attachment:
pgpKVnAwcuJkd.pgp
Description: PGP 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