parse version information from comport-meta.pd

This commit is contained in:
IOhannes m zmölnig 2024-12-16 17:39:48 +01:00
parent a3109e59f1
commit 452cc52da0

View file

@ -6,6 +6,13 @@ with-bird=no
class.sources = comport.c
comport.version := $(shell sed -n \
's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' \
comport-meta.pd)
cflags = -DVERSION='"$(comport.version)"'
datafiles = \
comport-help.pd \
comport-meta.pd \