]> git.pld-linux.org Git - packages/cacti-template-varnish.git/blobdiff - Makefile
- add SPECFILE
[packages/cacti-template-varnish.git] / 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:
 
This page took 0.103362 seconds and 4 git commands to generate.