From 25dc4cf23f281ae651f41ccb8e8c7077e6c3da80 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 27 Nov 2015 06:36:42 +0100 Subject: add HDPARM_PATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 439e087..535c818 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ INFODIR = $(DATADIR)/info LICENSEDIR = $(DATADIR)/licenses PY3_SHEBANG = "/usr/bin/env python3" +HDPARM_PATH = /usr/sbin/hdparm COMMAND = xpybar PKGNAME = xpybar @@ -78,7 +79,7 @@ bin/restricted-hdparm: obj/restricted-hdparm.o $(CC) -std=c89 -Ofast $(WARN) -o $@ $^ obj/%.o: src/%.c - $(CC) -std=c89 -Ofast $(WARN) -c -o $@ $< + $(CC) -std=c89 -Ofast $(WARN) -c -o $@ $< -D'HDPARM_PATH="$(HDPARM_PATH)"' .PHONY: doc doc: info pdf dvi ps -- cgit v1.2.3-70-g09d2