/usr/share/doc/libgnuplot-ocaml-dev/examples/Makefile is in libgnuplot-ocaml-dev 0.8.3-3build2.
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 60 61 62 63 64 65 66 67 68 | # $Id: Makefile,v 1.8 2007-11-27 23:07:22 chris_77 Exp $
# ocaml-gnuplot/demos
# Copyright (C) Christophe TROESTLER
# OCAMLC, OCAMLOPT, OCAMLDEP, OCAMLDOC
# The location of the OCaml compiler and tools. The defaults should be OK.
#
OCAMLC = ocamlc
OCAMLOPT = ocamlopt
OCAMLDEP = ocamldep
OCAMLDOC = ocamldoc
OCAMLFIND = ocamlfind
OCAMLFLAGS = -I +gnuplot
OCAMLOPTFLAGS = -I +gnuplot
DEMOS_LIBS = parse_args.ml
DEMOS = $(wildcard ex*.ml)
PKGS = unix bigarray gnuplot
PKGS_CMA = $(addsuffix .cma, $(PKGS))
.PHONY: demos byte opt
demos: byte
byte: $(DEMOS:.ml=.exe)
opt: $(DEMOS:.ml=.com)
ex%.exe: ex%.ml $(DEMOS_LIBS:.ml=.cmo)
$(OCAMLC) -o $@ $(OCAMLFLAGS) $(PKGS_CMA) $(DEMOS_LIBS:.ml=.cmo) $<
ex%.com: ex%.ml $(DEMOS_LIBS:.ml=.cmx)
$(OCAMLOPT) -o $@ $(OCAMLOPTFLAGS) $(PKGS_CMA:.cma=.cmxa) \
$(DEMOS_LIBS:.ml=.cmx) $<
parse_args.cmi: parse_args.mli
parse_args.cmo: parse_args.ml parse_args.cmi
parse_args.cmx: parse_args.ml parse_args.cmi
# Caml general dependencies
.SUFFIXES: .ml .mli .cmo .cmi .cmx
%.cmi: %.mli
$(OCAMLC) $(OCAMLFLAGS) -c $<
%.cmo: %.ml
$(OCAMLC) $(OCAMLFLAGS) -c $<
%.cma: %.cmo
$(OCAMLC) $(OCAMLFLAGS) -a -o $@ $^
%.cmx: %.ml
$(OCAMLOPT) $(OCAMLOPTFLAGS) -c $<
%.cmxa: %.cmx
$(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $@ $^
.PHONY: depend
depend: .depend
.depend: $(SOURCES) $(wildcard *.mli)
$(OCAMLDEP) $^ > .depend
include .depend
########################################################################
.PHONY: clean dist-clean
clean:
@ rm -f *~ .*~ *.{o,a} *.cm[aiox] *.cmxa *.annot *.exe *.com
@ rm -f ex*-*.{png,plt,eps,ps,dat}
dist-clean: clean
rm .depend
|