diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-07-07 20:55:18 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-07-07 21:21:52 +0200 |
commit | e7da32160c778f943e2b50abb5a1360d1917dd44 (patch) | |
tree | c611ec4b57cb213578f535c07cba49d94864688c | |
parent | fdb338fe12da6b21b6a7aa8c1090621a359dd9c7 (diff) | |
download | sdn-e7da32160c778f943e2b50abb5a1360d1917dd44.tar.gz sdn-e7da32160c778f943e2b50abb5a1360d1917dd44.tar.xz sdn-e7da32160c778f943e2b50abb5a1360d1917dd44.zip |
Makefile: fix version extraction
Regression introduced by cc59fcf.
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 \ |