use $(metafile) in version expansion

lib.version is only expanded if the file named by $(metafile) exists, but then it uses a hardcoded filename to do the actual expansion.

this patch uses $(metafile) to do the expansion instead.
This commit is contained in:
umläute 2015-10-29 00:31:08 +01:00
parent 84ae43edc8
commit 0a7d057341

View file

@ -662,7 +662,7 @@ metafile := $(wildcard $(lib.name)-meta.pd)
ifdef metafile
lib.version := $(shell sed -n \
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' \
$(lib.name)-meta.pd)
$(metafile))
endif