/usr/share/doc/libgdome2-ocaml-dev/examples/Makefile is in libgdome2-ocaml-dev 0.2.6-6.2build1.
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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | BIN_DIR = /usr/local/bin
REQUIRES = gdome2
PREDICATES =
OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -p
OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS) -g
OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS)
OCAMLDEP = ocamldep
LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
all: $(TESTOBJS) test
opt: $(TESTOBJS:.cmo=.cmx) test.opt
DEPOBJS = test.ml
TESTOBJS = test.cmo
depend:
$(OCAMLDEP) $(DEPOBJS) > .depend
test: $(TESTOBJS) $(LIBRARIES)
$(OCAMLC) -linkpkg -o test $(TESTOBJS)
test.opt: $(TESTOBJS:.cmo=.cmx) $(LIBRARIES_OPT)
$(OCAMLOPT) -linkpkg -o test.opt $(TESTOBJS:.cmo=.cmx)
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.ml.cmo: $(LIBRARIES)
$(OCAMLC) -c $<
.mli.cmi: $(LIBRARIES)
$(OCAMLC) -c $<
.ml.cmx: $(LIBRARIES_OPT)
$(OCAMLOPT) -c $<
clean:
rm -f *.cm[iox] *.o test test.opt
install:
cp test test.opt $(BIN_DIR)
uninstall:
rm -f $(BIN_DIR)/test $(BIN_DIR)/test.opt
.PHONY: install uninstall clean
include .depend
|