/usr/share/doc/libcothreads-ocaml-dev/examples/Makefile.template is in libcothreads-ocaml-dev 0.10-3build5.
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 48 49 50 51 52 53 54 55 56 57 58 59 | # Installation setting: Usually the only parameter needs customization
INSTALLLIBDIR = $(DESTDIR)$(OCAMLSTDLIBPATH)
# Layout of current project
SOURCEDIR = src
DOCDIR = doc
EXAMPLEDIR = example
# OCaml related setting
OCAMLC = ocamlc $(OCAMLCFLAGS)
OCAMLOPT = ocamlopt $(OCAMLOPTFLAGS)
OCAMLDEP = ocamldep
OCAMLDOC = ocamldoc
OCAMLSTDLIBPATH = $(shell $(OCAMLC) -where)
INCLUDES= # all relevant -I options here
OCAMLCFLAGS=$(INCLUDES) # add other options for ocamlc here
OCAMLOPTFLAGS=$(INCLUDES) # add other options for ocamlopt here
.SUFFIXES: .cmo .cmi .cmx .ml .mli
.mli.cmi:
$(OCAMLC) -c $<
.ml.cmo:
$(OCAMLC) -c $<
.ml.cmx:
$(OCAMLOPT) -c $<
.PHONY: depend all install doc uninstall clean ocamlclean
depend .depend:
$(OCAMLDEP) $(INCLUDES) *.ml *.mli > .depend
ocamlclean:
rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.a *.o *.annot *.out .depend *~
## Common Routines
MKDIR = mkdir -p
RM = rm -rf
CP = cp -pfr
MV = mv -f
LN = ln -sf
TOUCH = touch
CHMOD = chmod -R
CHGRP = chgrp -R
CHOWN = chown -R
TAR = tar
TARC = $(TAR) czvf
TARX = $(TAR) xzvf
AR = ar
-include .depend
|