Author: uwe Date: 2009-05-14 16:51:14 +0200 (Thu, 14 May 2009) New Revision: 509
Modified: trunk/Makefile Log: 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
Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2009-05-14 14:17:07 UTC (rev 508) +++ trunk/Makefile 2009-05-14 14:51:14 UTC (rev 509) @@ -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 @@ @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