/usr/share/doc/libjs-of-ocaml-dev/examples/Makefile.common is in libjs-of-ocaml-doc 2.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | include ../../Makefile.conf
-include ../../Makefile.local
COMP=../../compiler/$(COMPILER)
JSFILES=../../runtime/runtime.js
OCAMLC=ocamlfind ocamlc -package lwt -pp "camlp4o ../../lib/syntax/pa_js.cmo" -I ../../lib -g
STDLIB=$(LIBNAME).cma
$(NAME).js: $(NAME).byte $(COMP) $(JSFILES)
$(COMP) --noruntime $(JSFILES) $(OPTIONS) $(NAME).byte
$(NAME).byte: $(OBJS)
$(OCAMLC) -linkpkg -o $@ $(STDLIB) $^
%.cmo: %.ml ../../lib/$(STDLIB)
$(OCAMLC) -c $<
%.cmi: %.mli ../../lib/$(STDLIB)
$(OCAMLC) -c $<
clean::
rm -f *.cm[io] $(NAME).byte $(NAME).js
|