diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-14 14:51:14 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2009-05-14 14:51:14 +0000 |
commit | d4b72243b706847a544b7e83c84b2e92ed5014fc (patch) | |
tree | 100a898a0fe613f8ea553939c2a65fca54ec46c2 | |
parent | 8464cb214b1a2e03d38301829ada14f1e61787fa (diff) | |
download | flashrom-d4b72243b706847a544b7e83c84b2e92ed5014fc.zip flashrom-d4b72243b706847a544b7e83c84b2e92ed5014fc.tar.gz |
Cosmetics and eliminate unneeded vars as per IRC discussion
Build-tested and 'make PREFIX=/tmp/foo install' tested by me.
Corresponding to flashrom svn r509.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
-rw-r--r-- | Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -6,16 +6,12 @@ PROGRAM = flashrom -CC ?= gcc -STRIP = strip +CC ?= gcc +STRIP = strip INSTALL = install PREFIX ?= /usr/local CFLAGS ?= -Os -Wall -Werror -prefix = $(DESTDIR)$(PREFIX) -man8dir = $(prefix)/share/man/man8 -sbindir = $(prefix)/sbin - OS_ARCH = $(shell uname) ifneq ($(OS_ARCH), SunOS) STRIP_ARGS = -s @@ -78,9 +74,10 @@ pciutils: @rm -f .test.c .test install: $(PROGRAM) - mkdir -p $(sbindir) $(man8dir) - $(INSTALL) -m 0755 $(PROGRAM) $(sbindir) - $(INSTALL) -m 0644 $(PROGRAM).8 $(man8dir) + mkdir -p $(DESTDIR)$(PREFIX)/sbin + mkdir -p $(DESTDIR)$(PREFIX)/share/man/man8 + $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(PREFIX)/sbin + $(INSTALL) -m 0644 $(PROGRAM).8 $(DESTDIR)$(PREFIX)/share/man/man8 .PHONY: all clean distclean dep pciutils |