From abf47feca16287f5380f129c4ddea0f2a5278d38 Mon Sep 17 00:00:00 2001
From: Ulrich Sibiller <uli42@gmx.de>
Date: Sat, 10 Nov 2018 14:46:23 +0100
Subject: Makefile: drop intermediate NX version vars

---
 Makefile | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 9213dda9c..ffd6322da 100644
--- a/Makefile
+++ b/Makefile
@@ -50,11 +50,6 @@ endif
 
 IMAKE_DEFINES	?=
 
-NX_VERSION_MAJOR=$(shell ./version.sh 1)
-NX_VERSION_MINOR=$(shell ./version.sh 2)
-NX_VERSION_MICRO=$(shell ./version.sh 3)
-NX_VERSION_PATCH=$(shell ./version.sh 4)
-
 SHELL:=/bin/bash
 
 NX_X11_HEADERS =		\
@@ -106,10 +101,10 @@ test:
 version:
 	# prepare nx-X11/config/cf/nxversion.def
 	sed \
-	    -e 's/###NX_VERSION_MAJOR###/$(NX_VERSION_MAJOR)/' \
-	    -e 's/###NX_VERSION_MINOR###/$(NX_VERSION_MINOR)/' \
-	    -e 's/###NX_VERSION_MICRO###/$(NX_VERSION_MICRO)/' \
-	    -e 's/###NX_VERSION_PATCH###/$(NX_VERSION_PATCH)/' \
+	    -e 's/###NX_VERSION_MAJOR###/$(shell ./version.sh 1)/' \
+	    -e 's/###NX_VERSION_MINOR###/$(shell ./version.sh 2)/' \
+	    -e 's/###NX_VERSION_MICRO###/$(shell ./version.sh 3)/' \
+	    -e 's/###NX_VERSION_PATCH###/$(shell ./version.sh 4)/' \
 	    nx-X11/config/cf/nxversion.def.in \
 	    > nx-X11/config/cf/nxversion.def
 
-- 
cgit v1.2.3