From e7da32160c778f943e2b50abb5a1360d1917dd44 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 7 Jul 2021 20:55:18 +0200 Subject: Makefile: fix version extraction Regression introduced by cc59fcf. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e44d511..7fc3ccb 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ .POSIX: SHELL = /bin/sh CXXFLAGS = -g -std=c++14 -Wall -Wextra -pedantic -CPPFLAGS = `sed -ne 's/^project (\([^ )]*\).*/-DPROJECT_NAME="\1"/p' \ - -e 's/^set (version \([^ )]*\).*/-DPROJECT_VERSION="\1"/p' CMakeLists.txt` +CPPFLAGS = `sed -ne '/^project (\([^ )]*\) VERSION \([^ )]*\).*/ \ + s//-DPROJECT_NAME="\1" -DPROJECT_VERSION="\2"/p' CMakeLists.txt` sdn: sdn.cpp CMakeLists.txt $(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o sdn \ -- cgit v1.2.3-70-g09d2