logarion-2016/Makefile.old
2017-01-17 23:32:12 +00:00

34 lines
775 B
Makefile

OCB_FLAGS = -use-ocamlfind -I src # -I lib
OCB = ocamlbuild $(OCB_FLAGS)
PKGS = toml,uuidm,omd,str,batteries,lens,lwt,lwt.unix,ptime,ptime.clock.os,re.str,lens.ppx_deriving
WEB_PKGS = $(PKGS),opium.unix,tyxml,mustache
CMD_PKGS = $(PKGS),cmdliner
all: cmd web
dirs:
mkdir -p ymd/uuid ymd/title
web:
$(OCB) web.native -pkgs $(WEB_PKGS)
mv web.native logarion-web
cmd:
$(OCB) command.native -pkg $(CMD_PKGS)
mv command.native logarion
style:
sassc share/sass/main.sass > share/static/main.css
doc_html:
$(OCB) doc/logarion.docdir/index.html -pkgs $(PKGS)
opam.dependencies:
opam install toml uuidm omd batteries lens lwt ptime ptime re lens opium tyxml mustache cmdliner
clean:
$(OCB) -clean
rm -f src/*.{cmx,cmi,o} *.{cmx,cmi,o}
.PHONY: web doc