Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > a11c6d7c2da4a578bc6ca299361f0d57 > files > 2

superiotool-0-0.25.20101214svn6179.fc13.src.rpm

From 6814d5c373e6561b9e09bede4ec7e458162b594e Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Mon, 16 Aug 2010 17:23:14 +0400
Subject: [PATCH 1/1] Makefile cleanups

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index bcdb107..8082ef9 100644
--- a/Makefile
+++ b/Makefile
@@ -22,14 +22,14 @@ PROGRAM = superiotool
 
 CC      = gcc
 INSTALL = /usr/bin/install
-PREFIX  = /usr/local
+PREFIX  ?= /usr/local
 
 # Set the superiotool version string from the highest revision number
 # of the checked out superiotool files.
 SVNDEF := -D'SUPERIOTOOL_VERSION="$(shell svnversion -cn . \
           | sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
 
-CFLAGS += -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
+CFLAGS ?= -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
          -Werror-implicit-function-declaration -ansi -pedantic $(SVNDEF)
 LDFLAGS += -lz
 
@@ -68,9 +68,9 @@ $(PROGRAM): $(OBJS) superiotool.h
 
 install: $(PROGRAM)
 	mkdir -p $(DESTDIR)$(PREFIX)/sbin
-	$(INSTALL) $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
+	$(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin
 	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8
-	$(INSTALL) $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8
+	$(INSTALL) -m 0644 $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8
 
 clean:
 	rm -f $(PROGRAM) *.o
-- 
1.7.3.3