Commit a9b1f369 authored by Pascal J. Bourguignon's avatar Pascal J. Bourguignon

Homogeneized makefile target html.

parent 7155876c
......@@ -67,7 +67,6 @@ MODULES= common-lisp clext clmisc clisp susv3 rdp
help::
@printf $(HELP_FMT) 'show-variables' 'Shows the variables'
@printf $(HELP_FMT_2) 'then copy the whole library to '"$(PACKAGES)/$(PACKAGE_PATH)"
show-variables::
@printf $(VAR_FMT) 'Where non-lisp stuff will be installed:' PREFIX "$(PREFIX)"
@printf $(VAR_FMT) 'Where lisp packages are installed.' PACKAGES "$(PACKAGES)"
......@@ -116,8 +115,8 @@ install::
help::
@printf $(HELP_FMT) 'make systems' 'Analyses the sources and generates the ASDF systems.'
@printf $(HELP_FMT) 'make summaries' 'Analyses the sources and generates the summary.html files.'
@printf $(HELP_FMT) 'systems' 'Analyses the sources and generates the ASDF systems.'
@printf $(HELP_FMT) 'summaries' 'Analyses the sources and generates the summary.html files.'
systems system system.asd summaries summary summary.html:
@echo not implemented yet
@false
......@@ -145,14 +144,20 @@ WEBDOCDIR="$(HOME)/public_html/sites/com.informatimago.www"
help::
@printf $(HELP_FMT) 'doc' 'Generates documentation lispdoc and upload.'
@printf $(HELP_FMT) 'documentation' 'Generates the README.pdf file.'
@printf $(HELP_FMT) 'html' 'Generates the html files.'
@printf $(HELP_FMT) 'lispdoc' "Generates the lispdoc documentation (in $(WEBDOCDIR))."
@printf $(HELP_FMT) 'upload' "Uploads $(WEBDOCDIR) to the web hosting server."
doc:documentation
documentation:readme
readme: README.pdf README.html README.md
doc-upload:readme lispdoc upload
doc-upload:documentation lispdoc upload
lispdoc:$(WEBDOCDIR)/develop/lisp/doc
.PHONY::documentation readme doc-upload lispdoc
html:: README.html
$(MAKE) $(MFLAGS) -C clext/ html
$(MAKE) $(MFLAGS) -C small-cl-pgms/ html
.PHONY::doc documentation readme doc-upload lispdoc html
$(WEBDOCDIR)/develop/lisp/doc:
$(MAKE) $(MFLAGS) -C lispdoc
......
......@@ -8,12 +8,16 @@ RSTHTMLOPT=\
--leave-comments \
--link-stylesheet --stylesheet=$(CSS)
doc::
documentation::html
pandoc -f rst -t asciidoc < pipe-article-fr.txt >pipe-article-fr.asc
pandoc -f rst -t asciidoc < pipe-article-en.txt >pipe-article-en.asc
doc::
doc::documentation
html::
rst2html $(RSTHTMLOPT) < pipe-article-fr.txt |../tools/html-unwrap-document.lisp > pipe-article-fr.html.in
rst2html $(RSTHTMLOPT) < pipe-article-en.txt |../tools/html-unwrap-document.lisp > pipe-article-en.html.in
.PHONY:doc documentation html
#### THE END ####
......@@ -33,7 +33,7 @@
#*****************************************************************************
PREFIX=/usr/local
all:: documents
all:: doc
help::
@echo "make iana-character-sets.data # downloads the IANA character sets data file."
......@@ -51,12 +51,17 @@ system-graph.eps:system-graph.ps
README.pdf:README system-graph.eps
rst2pdf < README > README.pdf
README.html:README system-graph.eps
rst2html < README > README.html
documents:: README.pdf
doc::documentation
documentation:: README.pdf
html:: README.html
compile::
./compile.sh
install::
.PHONY:doc documentation html compile
#### THE END ####
......@@ -3,6 +3,12 @@ all:documentation.pdf
documentation.pdf:documentation.rst
rst2pdf documentation.rst
documentation.html:documentation.rst
rst2html documentation.rst > documentation.html
showpdf show-pdfs:documentation.pdf
open documentation.pdf
html:documentation.html
.PHONY:show-pdf showpdf html
......@@ -33,16 +33,32 @@
####****************************************************************************
PREFIX=/usr/local
TARGETS=index.html wang.html
HELPFORMAT="make %-20s \# %s\n"
all::help
# html target is one of the main target: it prepares the files needed
# for the web site.
help::
@printf $(HELPFORMAT) generate "Generate the index.html page."
generate:$(TARGETS) access-rights clean botihn-page
.PHONY:: generate
@printf $(HELPFORMAT) html "Generates html files from .html.in documents."
index.html.in:init.lisp index.lisp Makefile
clisp -norc -q -ansi -E utf-8 \
-x '(progn (setf *load-verbose* nil) (load "index.lisp") (values))' \
| tr -d '\015'\
| sed -e 's/^;.*//' -e '/^NIL$$/d' \
> index.html.in
html-files:index.html.in
$(MAKE) $(MFLAGS) -C botihn html
find . -name \*.html.in -print \
| while read file ; do \
echo ../tools/html-wrap-document.lisp \< "$$file" \> "$$(echo $$file | sed -e 's/\.in$$//')" ;\
../tools/html-wrap-document.lisp < "$$file" > "$$(echo $$file | sed -e 's/\.in$$//')" ;\
done
html: html-files access-rights
.PHONY::html html-files
help::
......@@ -67,22 +83,6 @@ help::
install:install-what-implementation
help::
@printf $(HELPFORMAT) html "Generates html files from .html.in documents."
index.html.in:init.lisp index.lisp Makefile
clisp -norc -q -ansi -E utf-8 \
-x '(progn (setf *load-verbose* nil) (load "index.lisp") (values))' \
| tr -d '\015'\
| sed -e 's/^;.*//' -e '/^NIL$$/d' \
> index.html.in
html:index.html.in
find . -name \*.html.in -print \
| while read file ; do \
echo ../tools/html-wrap-document.lisp \< "$$file" \> "$$(echo $$file | sed -e 's/\.in$$//')" ;\
../tools/html-wrap-document.lisp < "$$file" > "$$(echo $$file | sed -e 's/\.in$$//')" ;\
done
.PHONY::html
help::
@printf $(HELPFORMAT) what-implementation "Builds the what-implementation executable."
wi what-implementation:what-implementation.lisp
......@@ -97,9 +97,6 @@ install-what-implementation:what-implementation
cp -p what-implementation $(PREFIX)/bin 2> /dev/null || ( rm $(PREFIX)/bin/what-implementation && cp -p what-implementation $(PREFIX)/bin )
.PHONY:: install-what-implementation
botihn-page:
$(MAKE) $(MFLAGS) -C botihn doc
.PHONY:: botihn-page
#### THE END ####
......@@ -10,12 +10,15 @@ RSTHTMLOPT=\
all::botihn
botihn: com.informatimago.small-cl-pgms.botihn.asd botihn.lisp generate-application.lisp
ccl -norc < generate-application.lisp
doc::
doc::html
pandoc -f rst -t asciidoc < botihn.txt >botihn-fr.asc
rst2html $(RSTHTMLOPT) < botihn.txt | ../../tools/html-unwrap-document.lisp > botihn-fr.html.in
html::
rst2html $(RSTHTMLOPT) < botihn.txt | ../../tools/html-unwrap-document.lisp > botihn-fr.html.in
.PHONY:doc html
#### THE END ####
......@@ -60,4 +60,5 @@ include $(MAKEDIR)/lisp
-include Makefile.depend
#### Makefile -- -- ####
#### THE END ####
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment