Skip to content
Snippets Groups Projects
Commit f6c7d44a authored by Erwan Jahier's avatar Erwan Jahier
Browse files

src/Makefile:

	add a debug rule that hides the mli files and make debugging
	easier w.r.t. var printing.
parent fa9546ba
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ OCAMLMAKEFILE = ./OCamlMakefile ...@@ -3,6 +3,8 @@ OCAMLMAKEFILE = ./OCamlMakefile
RESULT=lus2lic RESULT=lus2lic
LIBS = str LIBS = str
ifndef SOURCES
SOURCES = \ SOURCES = \
./version.ml \ ./version.ml \
./global.ml \ ./global.ml \
...@@ -37,17 +39,28 @@ SOURCES = \ ...@@ -37,17 +39,28 @@ SOURCES = \
./lazyCompiler.mli \ ./lazyCompiler.mli \
./compile.ml \ ./compile.ml \
./main.ml ./main.ml
endif
MLONLY_SOURCES=$(filter %.ml %.mll %.mly, $(SOURCES))
# for using the debugger
debug:
mv *.mli mli
make MLONLY=yes SOURCES="$(MLONLY_SOURCES)" dc
mv mli/* .
all: version.ml all: version.ml
make bc make bc
include $(OCAMLMAKEFILE) include $(OCAMLMAKEFILE)
MLONLY_SOURCES := $(filter %.ml, $(SOURCES))
tags: $(MLONLY_SOURCES)
tags:
otags $(SOURCES) $(shell ocamlc -where)/*.mli otags $(SOURCES) $(shell ocamlc -where)/*.mli
test: $(RESULT) test: $(RESULT)
......
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