hop-2012/Makefile

27 lines
548 B
Makefile
Raw Normal View History

2012-01-08 17:41:04 +00:00
APP=ocamlmsg
2012-04-29 20:31:29 +00:00
all: message.ml amqp_spec.ml $(APP).native web/bootstrap/css/bootstrap.css
web/bootstrap/css/bootstrap.css: web/bootstrap/less/*.less
recess --compile web/bootstrap/less/bootstrap.less > $@
2012-01-08 17:41:04 +00:00
message.ml: messages.json codegen.py
python codegen.py > $@
amqp_spec.ml: amqp0-9-1.stripped.xml amqp_codegen.py
python amqp_codegen.py > $@
2012-01-08 17:41:04 +00:00
clean:
ocamlbuild -clean
rm -f message.ml
rm -f amqp_spec.ml
2012-01-08 17:41:04 +00:00
2012-04-29 20:31:29 +00:00
veryclean: clean
rm -f web/bootstrap/css/bootstrap.css
2012-01-08 17:41:04 +00:00
$(APP).native: $(wildcard *.ml)
ocamlbuild $@
run: all
./$(APP).native