forked from besport/ocsigen-i18n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 918 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
OCAMLOPT=ocamlfind ocamlopt
CHECKER=ocsigen-i18n-checker
REWRITER=ocsigen-i18n-rewriter
GENERATOR=ocsigen-i18n-generator
PROGS=${GENERATOR} ${REWRITER} ${CHECKER}
build: ${PROGS}
${GENERATOR}: i18n_generate.mll
ocamllex i18n_generate.mll
${OCAMLOPT} -package str -linkpkg -o $@ i18n_generate.ml
$(CHECKER): i18n_ppx_common.ml i18n_ppx_checker.ml
${OCAMLOPT} -package str -package compiler-libs.common -linkpkg -o $@ $^
${REWRITER}: i18n_ppx_common.ml i18n_ppx_rewriter.ml
${OCAMLOPT} -package str,compiler-libs.common,ppx_tools.metaquot -linkpkg -o $@ $^
clean:
-rm -f *.cmi *.cmx *.o *~ *#
-rm -f i18n_generate.ml
-rm -f ${GENERATOR} ${REWRITER} ${CHECKER}
install: ${PROGS}
ifndef bindir
${error bindir is not set}
else
cp ${PROGS} ${bindir}
endif
uninstall:
ifndef bindir
${error bindir is not set}
else
$(RM) ${bindir}/${GENERATOR}
$(RM) ${bindir}/${REWRITER}
$(RM) ${bindir}/${CHECKER}
endif