Skip to content
Snippets Groups Projects
Makefile.inc 984 B
Newer Older
# Time-stamp: <modified the 27/01/2020 (at 22:40) by Erwan Jahier>
erwan's avatar
erwan committed

erwan's avatar
erwan committed
DIR=../../_build/install/default
erwan's avatar
erwan committed
sasa=$(DIR)/bin/sasa  -l 100
erwan's avatar
erwan committed

LIB=-package algo
erwan's avatar
erwan committed

.PRECIOUS: %.ml
%.cmxs: %.ml
	ocamlfind ocamlopt $(LIB) -shared state.ml $(shell sasa -algo $*.dot) $< -o $@
%.cma: %.ml
	ocamlfind ocamlc -a $(LIB)  state.ml $(shell sasa -algo $*.dot) $< -o $@

	sasa -gld $< || echo "==> ok, I'll use the existing $@ file"
	sasa -glos $< || echo "==> ok, I'll use the existing $@ file"
%.rif: cmxs %.dot
	$(sasa) $(sasaopt) $*.dot -rif > $*.rif
erwan's avatar
erwan committed

%.pdf:
erwan's avatar
erwan committed
	osage -Tpdf $*.dot -o $*.pdf
erwan's avatar
erwan committed

erwan's avatar
erwan committed
genclean:
	rm -f *.cmxs sasa *.cm* *.o *.pdf *.rif *.gp *.log *.dro *.seed *.c *.h sasa-*.dot
erwan's avatar
erwan committed
	rm -f rdbg-session*.ml luretteSession*.ml *.lut a.out *.cov
##################################################################################
-include Makefile.untracked