diff options
author | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-14 14:51:14 +0000 |
---|---|---|
committer | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-14 14:51:14 +0000 |
commit | 189f7e99fa04070a3689b458e0fd4439ecdcf7c6 (patch) | |
tree | 100a898a0fe613f8ea553939c2a65fca54ec46c2 /Makefile | |
parent | ae498a22a591f3425ca1a29aa1047bcb13811607 (diff) | |
download | flashrom-189f7e99fa04070a3689b458e0fd4439ecdcf7c6.tar.gz |
Cosmetics and eliminate unneeded vars as per IRC discussion (trivial).
Build-tested and 'make PREFIX=/tmp/foo install' tested by me.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@509 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-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 |