From 91e445c18ad541fb220aee8e86592b5c84a14ab7 Mon Sep 17 00:00:00 2001 From: mattias Date: Wed, 5 Feb 2014 12:04:51 +0000 Subject: [PATCH] docs: html: Fixed compilation when lazbuild not in path, better clean up git-svn-id: trunk@43894 - --- docs/html/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/html/Makefile b/docs/html/Makefile index cd654775ae..05875b79b7 100644 --- a/docs/html/Makefile +++ b/docs/html/Makefile @@ -23,15 +23,15 @@ chmdocs: build_lcl_docs ./$< --outfmt chm build_lcl_docs: build_lcl_docs.lpi build_lcl_docs.lpr -ifeq (${LAZBUILD},) +ifeq ($(realpath ${LAZBUILD}),) echo 'Executable "lazbuild" not found, trying direct FPC call.' - ${FPC} -o$@ build_lcl_docs.lpr + ${FPC} -FU. $(addprefix -Fu../../,components/lazutils lcl) -o$@ build_lcl_docs.lpr else ${LAZBUILD} $< endif clean: - ${RM} build_lcl_docs lcl lazutils + ${RM} build_lcl_docs lcl lazutils *.o *.ppu *.rst htmlinstall chminstall: install -d ${INSTALL_DOCDIR}