File: Makefile.dpatch

package info (click to toggle)
syslog-ocaml 1.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 88 kB
  • ctags: 94
  • sloc: ml: 207; makefile: 52; sh: 29
file content (30 lines) | stat: -rw-r--r-- 878 bytes parent folder | download
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
#! /bin/sh /usr/share/dpatch/dpatch-run
## Makefile.dpatch by Eric Cooper <ecc@cmu.edu>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Makefile patches

@DPATCH@
--- syslog-1.3/Makefile	2005-02-16 18:31:49.000000000 -0500
+++ syslog-ocaml/Makefile	2006-07-19 14:13:13.000000000 -0400
@@ -1,10 +1,12 @@
--include Makefile.conf
+OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile
+DESTDIR = $(shell ocamlc -where | sed s:/usr/lib/:/usr/local/lib/:)
+OCAMLFIND_INSTFLAGS = -destdir $(DESTDIR)
 
 SOURCES=syslog.mli syslog.ml
 RESULT=syslog
 PACKS=unix
 
-LIBINSTALL_FILES=$(wildcard *.mli *.cmi *.cma *.cmx *.cmxa *.a *.so)
+LIBINSTALL_FILES=$(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
 
 all: byte-code-library
 opt: native-code-library
@@ -13,4 +15,4 @@
 uninstall: libuninstall
 doc: htdoc
 
--include OCamlMakefile
+include $(OCAMLMAKEFILE)