Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit c0a49190 authored by erwan's avatar erwan
Browse files

Fix the lutin manual build process

parent d42b5b12
Pipeline #1648 failed with stages
in 2 minutes and 48 seconds
...@@ -2,7 +2,7 @@ ifndef LURETTE_PATH ...@@ -2,7 +2,7 @@ ifndef LURETTE_PATH
LURETTE_PATH=$(PWD) LURETTE_PATH=$(PWD)
endif endif
all:build all:build man
-include ./Makefile.version -include ./Makefile.version
-include ./Makefile.local -include ./Makefile.local
......
OASISFormat: 0.4 OASISFormat: 0.4
Name: Lutin Name: Lutin
Version: 2.38 Version: 2.39
Authors: Erwan Jahier Authors: Erwan Jahier
Maintainers: erwan.jahier@imag.fr Maintainers: erwan.jahier@imag.fr
License: PROP License: PROP
Plugins: DevFiles (0.4), META (0.4) Plugins: DevFiles (0.4), META (0.4), StdFiles (0.4)
Synopsis: Lutin: modeling stochastic reactive systems. Synopsis: Lutin: modeling stochastic reactive systems.
Homepage: http://www-verimag.imag.fr/Lutin.html Homepage: http://www-verimag.imag.fr/Lutin.html
OCamlVersion: >= 4.02 OCamlVersion: >= 4.02
......
include $(LURETTE_PATH)/Makefile.common.source
LUTINSRC=../../lutin/src LUTINSRC=../../lutin/src
LUT2TEX= $(LURETTE_PATH)/utils/lutintolatex LUT2TEX= $(LURETTE_PATH)/utils/lutintolatex
SRCS=./commands.tex \ SRCS=./commands.tex \
./language.tex \ ./language.tex \
./lutsyntax.tex \
./semantics.tex \
./lutin_toplevel.tex \
./lutin_examples.tex \
./objs/lutyacc.tex \
./objs/version.tex \
./objs/lutin.tex ./objs/gnuplotrif.tex ./objs/checkrif.tex \ ./objs/lutin.tex ./objs/gnuplotrif.tex ./objs/checkrif.tex \
./objs/foo.c.tex \ ./objs/foo.c.tex \
./objs/call_external_c_code.lut.tex \ ./objs/call_external_c_code.lut.tex \
...@@ -17,7 +11,13 @@ SRCS=./commands.tex \ ...@@ -17,7 +11,13 @@ SRCS=./commands.tex \
./objs/ud.lut.tex \ ./objs/ud.lut.tex \
./objs/rabbit.lut.tex \ ./objs/rabbit.lut.tex \
./objs/ud.jpg \ ./objs/ud.jpg \
bib.bib ./main.tex touch.tex ./lutsyntax.tex \
./semantics.tex \
./lutin_toplevel.tex \
./lutin_examples.tex \
./objs/lutyacc.tex \
./objs/version.tex \
./main.tex touch.tex
all: touch.tex lutin-man.pdf all: touch.tex lutin-man.pdf
...@@ -39,9 +39,13 @@ lutin-man.pdf: objs/main.pdf ...@@ -39,9 +39,13 @@ lutin-man.pdf: objs/main.pdf
./objs/call_external_c_code.lut.tex:../../examples/lutin/external_code/call_external_c_code.lut ./objs/call_external_c_code.lut.tex:../../examples/lutin/external_code/call_external_c_code.lut
$(LUT2TEX) ../../examples/lutin/external_code/call_external_c_code.lut > ./objs/call_external_c_code.lut.tex $(LUT2TEX) ../../examples/lutin/external_code/call_external_c_code.lut > ./objs/call_external_c_code.lut.tex
./objs/ud.jpg: D=../../examples/lutin/up_and_down/$(shell ocamlc -version)
gnuplot-rif$(EXE) -jpg ../../examples/lutin/up_and_down/test.rif.exp objs/ud.rif: $(D)/test.rif.exp
mv ../../examples/lutin/up_and_down/test.rif.jpg objs/ud.jpg cp $< $@
./objs/ud.jpg: objs/ud.rif
cd objs ; gnuplot-rif$(EXE) -jpg ud.rif
./objs/polar.lut.tex: ./objs/polar.lut.tex:
...@@ -65,6 +69,7 @@ touch.tex: ...@@ -65,6 +69,7 @@ touch.tex:
touch touch.tex touch touch.tex
objs/main.pdf: objs $(SRCS) objs/main.pdf: objs $(SRCS)
cp main.tex objs;
cd objs; pdflatex main.tex; bibtex main; pdflatex main.tex cd objs; pdflatex main.tex; bibtex main; pdflatex main.tex
objs: objs:
...@@ -72,18 +77,15 @@ objs: ...@@ -72,18 +77,15 @@ objs:
BIN=/usr/local/tools/lustre/misc/bin BIN=/usr/local/tools/lustre/misc/bin
./objs/lutyacc.tex: ./objs/rules ./objs/lutyacc.tex: $(LUTINSRC)/lutParser.mly
cat $< | $(BIN)/rules2tex -t tokens > $@ $(BIN)/yacc2latex -t tokens $(LUTINSRC)/lutParser.mly -o $@
./objs/rules : $(LUTINSRC)/lutParser.mly
$(BIN)/yacc2rules $(LUTINSRC)/lutParser.mly > $@
./objs/cleanyacc : $(LUTINSRC)/lutParser.mly ./objs/cleanyacc : $(LUTINSRC)/lutParser.mly
cat $< | sed -e "s/lut//g" -e "s/TK_EOF//" > $@ cat $< | sed -e "s/lut//g" -e "s/TK_EOF//" > $@
.PHONY:objs/version.tex
./objs/version.tex: $(LUTINSRC)/lutVersion.ml Makefile ./objs/version.tex:
cd ../.. ; make gen_version cp ../version.tex objs
clean: clean:
rm -f ./objs/* rm -f ./objs/*
......
...@@ -438,7 +438,7 @@ lutTypedIdentList: lutTypedIdentListA ...@@ -438,7 +438,7 @@ lutTypedIdentList: lutTypedIdentListA
{ $1 } { $1 }
; ;
lutTypedIdentListA: lutTypedIdent /* ebnf:print=expand */ lutTypedIdentListA: /* ebnf:print=expand */ lutTypedIdent
{ $1 } { $1 }
| lutTypedIdentListA TK_SEMICOL lutTypedIdent | lutTypedIdentListA TK_SEMICOL lutTypedIdent
{ $3@$1 } { $3@$1 }
......
let str="2.38" let str="2.39"
let sha="7a93e1b" let sha="d42b5b1"
#!/bin/sh #!/bin/sh
# #
# to generate colored latex version of lutin files # to generate colored latex version of lutin files
#
FILE=$1 FILE=$1
......
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