]> git.pld-linux.org Git - packages/cacti-template-varnish.git/commitdiff
- add SPECFILE
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 15 Apr 2010 06:44:55 +0000 (06:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Makefile -> 1.2

Makefile

index c9ed121da7f5a3ac792c0c40a31433db97660292..b86ca057daff333bdb30f58b5a0e24ee53bda92e 100644 (file)
--- 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:
 
 
 all:
 
This page took 0.118782 seconds and 4 git commands to generate.