Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
ATAidle
> ataidle.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ataidle.patch of Package ATAidle (Revision 2)
Currently displaying revision
2
,
show latest
--- Makefile.orig 2010-11-02 21:26:09.000000000 +0100 +++ Makefile 2011-11-14 18:48:16.451883985 +0100 @@ -1,4 +1,4 @@ -PREFIX = /usr/local +PREFIX := /usr/local CC ?= gcc LD ?= ld CFLAGS += -Wall -pedantic -std=c99 @@ -37,14 +37,14 @@ install $(PROG) $(PREFIX)/sbin if [ "$(OS)" = Linux ]; then \ - if [ ! -d $(PREFIX)/share/man/man8 ]; then \ - mkdir -p $(PREFIX)/share/man/man8; \ + if [ ! -d $(DESTDIR)$(PREFIX)/share/man/man8 ]; then \ + mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8; \ fi; \ - install $(MAN) $(PREFIX)/share/man/man8; \ + install $(MAN) $(DESTDIR)$(PREFIX)/share/man/man8; \ else \ - install $(MAN) $(PREFIX)/man/man8; \ - install freebsd/ataidle_rc $(PREFIX)/etc/rc.d/ataidle; \ - sed -I '' s:%%PREFIX%%:$(PREFIX):g $(PREFIX)/etc/rc.d/ataidle; \ + install $(MAN) $(DESTDIR)$(PREFIX)/man/man8; \ + install freebsd/ataidle_rc $(DESTDIR)$(PREFIX)/etc/rc.d/ataidle; \ + sed -I '' s:%%PREFIX%%:$(PREFIX):g $(DESTDIR)$(PREFIX)/etc/rc.d/ataidle; \ fi uninstall: