From 6661766227d015b4c1dc773feba0b68f04fd94e6 Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 1 May 2009 07:10:38 +0000 Subject: [PATCH] lcl docs: added Makefile for unix, used by debian packages git-svn-id: trunk@19723 - --- .gitattributes | 1 + docs/html/Makefile | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docs/html/Makefile diff --git a/.gitattributes b/.gitattributes index 96630e3f5f..5cac576a9d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1873,6 +1873,7 @@ docs/TODO.txt svneol=native#text/plain docs/acknowledgements.txt svneol=native#text/plain docs/booth/ProdProgEntwMitOpenSourceSystems2007.odp -text docs/contributors.utf8 svneol=native#text/plain +docs/html/Makefile svneol=native#text/plain docs/html/README.txt svneol=native#text/plain docs/html/build_chm.bat svneol=native#text/plain docs/html/build_chm.sh svneol=native#text/plain diff --git a/docs/html/Makefile b/docs/html/Makefile new file mode 100644 index 0000000000..040dae073e --- /dev/null +++ b/docs/html/Makefile @@ -0,0 +1,32 @@ +ifndef MKDIR +MKDIR=mkdir -p +endif +ifndef CP +CP=cp -Rfpl +endif +RM:=rm -rf + +ifndef LAZBUILD +LAZBUILD=$(firstword $(wildcard ../../lazbuild) lazbuild) +endif + +build: htmldocs + +htmldocs: build_lcl_docs + ./$< --outfmt html + +chmdocs: build_lcl_docs + ./$< --outfmt chm --arg --make-searchable + +build_lcl_docs: build_lcl_docs.lpi + ${LAZBUILD} $< + +clean: + ${RM} build_lcl_docs lcl + +htmlinstall chminstall: + install -d ${INSTALL_DOCDIR} + ${CP} -t ${INSTALL_DOCDIR} \ + lcl + +.PHONY: build clean install htmldocs chmdocs