File: DESTDIRPREFIX-support

package info (click to toggle)
owx 0~20110415-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 300 kB
  • ctags: 208
  • sloc: cpp: 1,253; sh: 111; makefile: 53
file content (29 lines) | stat: -rw-r--r-- 794 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
Description: support DESTDIR variable
 This patch adds support for the PREFIX and DESTDIR variable in the
 main makefile.
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: debian
Forwarded: no
Reviewed-By: Antoine Beaupré <anarcat@koumbit.org>
Last-Update: 2011-10-26

--- owx-0~20110415.orig/src/Makefile
+++ owx-0~20110415/src/Makefile
@@ -7,8 +7,11 @@ RM	= rm -f
 INSTALL	= install
 LN	= ln
 
-LIBXDIR	= /usr/local/libexec/
-BINDIR	= /usr/local/bin/
+PREFIX?= /usr/local
+DESTDIR?=
+
+LIBXDIR	= $(DESTDIR)/$(PREFIX)/libexec/
+BINDIR	= $(DESTDIR)/$(PREFIX)/bin/
 
 CXXFLAGS= -pipe -Wall -Wextra -O2 -g
 LDFLAGS	=