From: Colin Walters Date: Mon, 27 Aug 2012 13:38:30 +0000 (-0400) Subject: build: Don't depend on hwdata.spec for 'make install' X-Git-Tag: hwdata-0.240-1~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ab47e5247be12cb03df83682a6d1c1f5a716cff;p=oweals%2Fhwdata.git build: Don't depend on hwdata.spec for 'make install' It's really not necessary to parse "hwdata.spec" to tell us our package name is "hwdata". The other targets still do depend on the version/release in hwdata.spec. Signed-off-by: Adam Jackson --- diff --git a/Makefile b/Makefile index c8b203b..fa4fbe0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -NAME=$(shell awk '/Name:/ { print $$2 }' hwdata.spec) +NAME=hwdata VERSION=$(shell awk '/Version:/ { print $$2 }' hwdata.spec) RELEASE=$(shell rpm -q --define 'dist %{nil}' --specfile --qf "%{release}" hwdata.spec) SOURCEDIR := $(shell pwd)