Newer
Older
build: setup.data setup.ml src/lv6version.ml
setup.ml:_oasis
oasis setup
PROF=--enable-profile
PROF=--disable-profile
setup.data:configure
configure: setup.ml
ocaml setup.ml -configure $(PROF) --prefix $(LUSTREV6_PATH) --exec-prefix $(LUSTREV6_PATH)/$(HOSTTYPE)
install:
ocaml setup.ml -install
uninstall:
ocaml setup.ml -uninstall
reinstall:
ocaml setup.ml -reinstall
clean:
ocaml setup.ml -clean
distclean:
ocaml setup.ml -distclean
include ./Makefile.version
#######################################################################################
test_nc:
cd $(TESTDIR) ; make test ; cd $(curdir)
test:
cd $(TESTDIR) ; make ; make time
# XXX use rdbg -lurette !!!
# Compile and copy lurrettop from here because
# (1) lurettetop uses lus2lic source (it embeds the V6 interpreter)
# (2) the tests performed here uses lurettetop...
test/lurettetop: ltop
cp ~/lurette/bin/lurettetop test
cd ~/lurette/source/ ; make ltop; make cp
Erwan Jahier
committed
# copy (lus2lic -> lurette) the shared source to the lurette directory
cp src/*.ml ../lurette/source/lus2lic/
cp src/*.mli ../lurette/source/lus2lic/
cp src/*.mly ../lurette/source/lus2lic/
cp src/*.mll ../lurette/source/lus2lic/
chmod u-w ../lurette/source/lus2lic/*
Erwan Jahier
committed
# Keep those files in sync as they are shared with lurette
Erwan Jahier
committed
# cp lurette -> lus2lic
LURETTEDIR=~/lurette
cp_comon_file:
chmod u+w src/verbose.ml
chmod u+w src/verbose.mli
Erwan Jahier
committed
cp $(LURETTEDIR)/source/Lutin/verbose.ml src/
cp $(LURETTEDIR)/source/Lutin/verbose.mli src/
chmod u-w src/verbose.ml
chmod u-w src/verbose.mli
Erwan Jahier
committed
#######################################################################################
# git entry points
ci:
git commit -F log && rm -f src/lv6version.ml
cia: src/lv6version.ml
git commit -a -F log && rm -f src/lv6version.ml
amend:
git commit -F log --amend && rm -f src/lv6version.ml
amend-a:
git commit -a -F log --amend && rm -f src/lv6version.ml
push:
git push git+ssh://$(USER)scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/git/lustre/lus2lic.git
git pull git+ssh://$(USER)@scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/git/lustre/lus2lic.git
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#######################################################################################
# misc
show:
git log --reverse --pretty=oneline | nl
dot:
ocamldoc src/*.ml -d ocamldoc -dot -dot-reduce
dot -Tpdf ocamldoc.out > lus2lic.pdf
ocamldoc src/*.ml -d ocamldoc -dot -dot-reduce -dot-types
dot -Tpdf ocamldoc.out > lus2lic-types.pdf
xpdf lus2lic.pdf
xpdf lus2lic-types.pdf
html:
ocamldoc -I src/*.ml -d ocamldoc -html -keep-code
debug: nomli dc
all: nc
lus2lic:
make all
make test
dif:
git --no-pager diff --color-words
diff:
rm -f diff_lv6.diff; git diff --ignore-all-space > diff_lv6.diff ; ls -l diff_lv6.diff
OTAGS=otags
tags:
$(OTAGS) -v $(shell ocamlc -where)/*.mli src/*.ml
log:
rm -f lv6.log; git log > lv6.log