1From 84fea5d784e010f84c860b34e55ea2c855c17b3b Mon Sep 17 00:00:00 2001 2From: Peter Korsgaard <peter@korsgaard.com> 3Date: Wed, 12 May 2021 09:18:33 +0200 4Subject: [PATCH] Makefile: drop explicit undefine PYLIB for compatibility with 5 make 3.81 6 7GNU make 3.81 does not like the explicit tab-indented undefine: 8 9Makefile:41: *** commands commence before first target. Stop. 10 11Dropping the indentation also doesn't work: 12 13Makefile:41: *** missing separator. Stop. 14 15So simply drop the undefine logic. As explained in the GNU make manual, 16undefine is not commonly needed as E.G. ifdef checks for a non-zero string: 17 18https://www.gnu.org/software/make/manual/html_node/Undefine-Directive.html 19https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html 20 21Fixes: 22http://autobuild.buildroot.net/results/cf7c4f360f5464c700788cc8299fd086544c80e8/build-end.log 23 24Signed-off-by: Peter Korsgaard <peter@korsgaard.com> 25[Upstream: https://marc.info/?l=linux-rt-users&m=162080462211139&w=2] 26--- 27 Makefile | 5 ----- 28 1 file changed, 5 deletions(-) 29 30diff --git a/Makefile b/Makefile 31index b17ac09..ec85ac8 100644 32--- a/Makefile 33+++ b/Makefile 34@@ -36,11 +36,6 @@ LDFLAGS ?= 35 36 PYLIB ?= $(shell python3 -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_lib())') 37 38-# Check for errors, such as python3 not available 39-ifeq (${PYLIB},) 40- undefine PYLIB 41-endif 42- 43 MANPAGES = src/cyclictest/cyclictest.8 \ 44 src/pi_tests/pi_stress.8 \ 45 src/ptsematest/ptsematest.8 \ 46-- 472.20.1 48 49