D&C GLug - Home Page

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

[LUG] Makefiles

 

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

I'm trying to use a GNU makefile to bootstrap a qmake process but if
someone runs distclean twice or on a fresh install it creates a fatal
make error. I've found a number of examples on google but none seem to
actually work.

Thanks in advance

Robin

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