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	= 
