From 452cc52da02d36bff196c627c10950e7d6180bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 16 Dec 2024 17:39:48 +0100 Subject: [PATCH] parse version information from comport-meta.pd --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index c4ed7bc..cbc9d3d 100644 --- a/Makefile +++ b/Makefile @@ -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 \