docs: html: Fixed compilation when lazbuild not in path, better clean up

git-svn-id: trunk@43894 -
This commit is contained in:
mattias 2014-02-05 12:04:51 +00:00
parent 95931463b9
commit 91e445c18a

View File

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