From a2621c563dc124a0a7365839d3a0d25ecbf75b07 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sun, 8 Feb 2004 22:13:37 +0100 Subject: Added DESTDIR support to the Makefile. From giorgio bellussi and adapted to the current Makefile version by me. --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Makefile') 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) $@ -- cgit v1.2.3