blob: e6eae75051a8e6eacff937ae306e549e2a7ba5f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-Makefile,v 1.2 2016/05/06 12:08:58 jaapb Exp $
Do not remove package before installing and use DESTDIR
--- Makefile.orig 2016-03-16 07:52:25.000000000 +0000
+++ Makefile
@@ -52,11 +52,11 @@ release:
rm -rf $(NAME_VERSION)
install:
- ocamlfind remove ppx_deriving
+# ocamlfind remove ppx_deriving
grep -E '^[[:space:]]+' ppx_deriving.install | \
awk '{ print $$1 }' | \
sed -e 's:"?*::g' | \
xargs ocamlfind install ppx_deriving
- mv `ocamlfind query ppx_deriving -suffix /ppx_deriving_main.native` `ocamlfind query ppx_deriving -suffix /ppx_deriving$(EXE)`
+ mv ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_deriving/ppx_deriving_main.native ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_deriving/ppx_deriving$(EXE)
.PHONY: gh-pages release
|