Skip to content
Snippets Groups Projects
Commit 176c8663 authored by Julien Signoles's avatar Julien Signoles
Browse files

[refman] improved Makefile

parent 31c46c7b
No related branches found
No related tags found
No related merge requests found
##########
# Inputs #
##########
VERSION_FILE=../../VERSION
EACSL_VERSION=$(shell cat $(VERSION_FILE))
MAIN=main
DEPS_MODERN=macros_modern.tex eacslversion.tex biblio.bib \
......@@ -12,25 +17,35 @@ DEPS_MODERN=macros_modern.tex eacslversion.tex biblio.bib \
ghost_modern.bnf generalinvariants_modern.bnf iterator_modern.bnf \
bsearch.c bsearch2.c link.c
.PHONY: all e-acsl default
##############
# Main rules #
##############
.PHONY: all e-acsl default
default: e-acsl.pdf
e-acsl: e-acsl-implementation.pdf e-acsl.pdf main.pdf
all: e-acsl
LANGUAGE_VERSION=1.9
EACSL_VERSION=$(shell cat $(VERSION_FILE))
e-acsl-implementation.pdf: $(DEPS_MODERN)
e-acsl-implementation.tex: $(MAIN).tex Makefile
rm -f $@
sed -e '/PrintRemarks/s/%--//' $^ > $@
chmod a-w $@
e-acsl.pdf: $(DEPS_MODERN)
e-acsl.tex: e-acsl-implementation.tex Makefile
rm -f $@
sed -e '/PrintImplementationRq/s/%--//' \
-e '/ColorImplementationRq/s/%--//' \
$^ > $@
chmod a-w $@
$(MAIN).pdf: $(DEPS_MODERN)
EACSL_DIR=../..
DISTRIB_DIR=$(HOME)/frama-c/doc/www/distrib
install: e-acsl-implementation.pdf e-acsl.pdf
cp -f $^ $(EACSL_DIR)/doc/manuals
# cp -f e-acsl.pdf \
# $(DISTRIB_DIR)/download/e-acsl/e-acsl-$(LANGUAGE_VERSION).pdf
# cp -f e-acsl-implementation.pdf \
# $(DISTRIB_DIR)/download/e-acsl/e-acsl-implementation-$(EACSL_VERSION).pdf
include $(EACSL_DIR)/doc/support/MakeLaTeXModern
......@@ -39,6 +54,29 @@ eacslversion.tex: Makefile $(VERSION_FILE)
echo '\\newcommand{\\eacslversion}{$(EACSL_VERSION)}' > $@
chmod a-w $@
.PHONY: clean
clean:
rm -rf *~ *.aux *.log *.nav *.out *.snm *.toc *.lof *.pp *.bnf \
*.haux *.hbbl *.htoc \
*.cb *.cm? *.bbl *.blg *.idx *.ind *.ilg \
transf trans.ml pp.ml pp
#########
# Tools #
#########
pp: pp.ml
ocamlopt -o $@ str.cmxa $^
transf: transf.cmo transfmain.cmo
ocamlc -o $@ $^
transfmain.cmo: transf.cmo
#################
# Generic rules #
#################
%.1: %.mp
mpost -interaction=batchmode $<
......@@ -78,40 +116,3 @@ eacslversion.tex: Makefile $(VERSION_FILE)
%.cmo: %.ml
ocamlc -c $<
pp: pp.ml
ocamlopt -o $@ str.cmxa $^
transf: transf.cmo transfmain.cmo
ocamlc -o $@ $^
transfmain.cmo: transf.cmo
.PHONY: clean
clean:
rm -rf *~ *.aux *.log *.nav *.out *.snm *.toc *.lof *.pp *.bnf \
*.haux *.hbbl *.htoc \
*.cb *.cm? *.bbl *.blg *.idx *.ind *.ilg \
transf trans.ml pp.ml pp
# version WEB lie ce qui est implement
e-acsl-implementation.pdf: $(DEPS_MODERN)
e-acsl-implementation.tex: $(MAIN).tex Makefile
rm -f $@
sed -e '/PrintRemarks/s/%--//' $^ > $@
chmod a-w $@
# version WEB du langage E-ACSL
e-acsl.pdf: $(DEPS_MODERN)
e-acsl.tex: e-acsl-implementation.tex Makefile
rm -f $@
sed -e '/PrintImplementationRq/s/%--//' \
-e '/ColorImplementationRq/s/%--//' \
$^ > $@
chmod a-w $@
# version pour le goupe de travail E-ACSL
$(MAIN).pdf: $(DEPS_MODERN)
\newcommand{\eacslversion}{0.8}
\newcommand{\eacslversion}{0.8+dev}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment