From e0731617131579063fbbf40fe7d66cdeb8ced066 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 15 Apr 2010 06:44:55 +0000 Subject: [PATCH] - add SPECFILE Changed files: Makefile -> 1.2 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c9ed121..b86ca05 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ -PACKAGE_NAME := $(patsubst %.spec,%,$(wildcard *.spec)) -PACKAGE_VERSION := $(shell awk '/Version:/{print $$2}' $(PACKAGE_NAME).spec) +SPECFILE := $(firstword $(wildcard *.spec)) +PACKAGE_NAME := $(patsubst %.spec,%,$(SPECFILE)) +PACKAGE_VERSION := $(shell awk '/Version:/{print $$2}' $(SPECFILE)) all: -- 2.43.0