From 84e3f91a7872c5d4b93ca9ba6451eb24b3c5abf6 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 4 Jul 2013 05:23:23 +0200 Subject: [PATCH] Added DESTDIR. --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4c9f665..54a818e 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ # You should have received a copy of the GNU General Public License # along with breezed. If not, see . -BINARY_PATH = /usr/bin -MAN_PATH = /usr/share/man/man1 -PM_SLEEPD = /usr/lib/pm-utils/sleep.d +BINARY_PATH = $(DESTDIR)/usr/bin +MAN_PATH = $(DESTDIR)/usr/share/man/man1 +PM_SLEEPD = $(DESTDIR)/usr/lib/pm-utils/sleep.d CFLAGS = -Wall -ansi -pedantic $(OPTIMIZE_FLAG) @@ -29,21 +29,21 @@ all: breezed breezed: breezed.c $(CC) -o $@ $^ $(LDFLAGS) -install: breezed /etc/breezed.conf +install: breezed $(DESTDIR)/etc/breezed.conf install -m 755 breezed $(BINARY_PATH) - install -m 755 breezed.sh /etc/init.d/ + install -m 755 breezed.sh $(DESTDIR)/etc/init.d/ install -m 644 breezed.1 $(MAN_PATH) gzip $(MAN_PATH)/breezed.1 install -m 755 breezed-pm-utils.sh $(PM_SLEEPD)/50breezed update-rc.d breezed.sh defaults - /etc/init.d/breezed.sh start + $(DESTDIR)/etc/init.d/breezed.sh start uninstall: - /etc/init.d/breezed.sh stop + $(DESTDIR)/etc/init.d/breezed.sh stop update-rc.d -f breezed.sh remove rm $(PM_SLEEPD)/50breezed rm $(MAN_PATH)/breezed.1.gz - rm /etc/init.d/breezed.sh + rm $(DESTDIR)/etc/init.d/breezed.sh rm $(BINARY_PATH)/breezed clean: -- 2.39.5