summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-02-08 22:13:37 +0100
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:45 +0200
commita2621c563dc124a0a7365839d3a0d25ecbf75b07 (patch)
tree5d499961e43e23355b1cddbb4319bb1e3e2f9275 /Makefile
parent7d1935e9ed825c2f6069dbe7389a18649307e737 (diff)
Added DESTDIR support to the Makefile. From giorgio bellussi
<giorgio.bellussi@infocamere.it> and adapted to the current Makefile version by me.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 3a04acd..b351dc9 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,9 @@ XF86PCIINCLUDE = $(TOP)/programs/Xserver/hw/xfree86/os-support/bus
TOP_X_INCLUDES = -I$(TOP)/exports/include
TOP_INCLUDES = -I$(TOP) $(TOP_X_INCLUDES)
-INSTALLED_X = /usr/X11R6
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+INSTALLED_X = $(DESTDIR)/usr/X11R6
+BINDIR = $(DESTDIR)/usr/local/bin
+MANDIR = $(DESTDIR)/usr/local/man/man1
XF86SRC = $(SERVERSRC)/hw/xfree86
XF86COMSRC = $(XF86SRC)/common
@@ -54,19 +54,19 @@ install: $(BINDIR)/synclient $(BINDIR)/syndaemon $(INSTALLED_X)/lib/modules/inpu
install-man: $(MANDIR)/synclient.1 $(MANDIR)/syndaemon.1
$(MANDIR)/synclient.1: manpages/synclient.1
- install -D $< $(DESTDIR)/$@
+ install -D $< $@
$(MANDIR)/syndaemon.1: manpages/syndaemon.1
- install -D $< $(DESTDIR)/$@
+ install -D $< $@
$(BINDIR)/synclient : synclient
- cp $< $@
+ install -D $< $@
$(BINDIR)/syndaemon : syndaemon
- cp $< $@
+ install -D $< $@
$(INSTALLED_X)/lib/modules/input/synaptics_drv.o : synaptics_drv.o
- cp $< $@
+ install -D $< $@
synaptics_drv.o: $(OBJS)
$(RM) $@