summaryrefslogtreecommitdiff
path: root/devel/ocaml-camlp4/files/patch-Makefile
blob: bf1e1fab001b782a2a4780acdbb081bbde2d0f88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- Makefile.orig	2014-10-21 11:41:15 UTC
+++ Makefile
@@ -19,12 +19,12 @@ all: byte native
 
 .PHONY: install
 install:
-	./build/install.sh
+	env LIBDIR=$(LIBDIR) BINDIR=$(BINDIR) DESTDIR=$(DESTDIR) ./build/install.sh
 
 .PHONY: install-META
 install-META: camlp4/META
-	mkdir -p ${PKGDIR}/camlp4/
-	cp -f camlp4/META ${PKGDIR}/camlp4/
+	mkdir -p ${DESTDIR}${PKGDIR}/camlp4/
+	cp -f camlp4/META ${DESTDIR}${PKGDIR}/camlp4/
 
 camlp4/META: camlp4/META.in
 	sed -e s/@@VERSION@@/${version}/g $? > $@