summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorskurtz97 <skurtz97@users.noreply.github.com>2026-11-25 16:15:44 -0600
committerskurtz97 <skurtz97@users.noreply.github.com>2026-11-25 16:15:44 -0600
commite9fa5fa94954458fdf1ceeaee27901cc7db564ae (patch)
treef20205976b4551a5aa544219afb1c80bdfa89587
parent53dd4b26df108b850616d563fb63b08290e8c70f (diff)
downloadztop-e9fa5fa94954458fdf1ceeaee27901cc7db564ae.tar.gz
Makefile: parenthesise the pipeline, z/OS make spins on |-and-||
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ddc4821..4009fda 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,9 @@
#
# The build is POSIX make, the make z/OS ships: no :=, no ?=, no ifeq,
# no $(shell), no pattern rules. gmake is not installed everywhere and
-# /bin/make is not GNU make.
+# /bin/make is not GNU make. One more z/OS make trait to know about: a
+# recipe line holding a pipeline *and* a || spins it, so the pipeline is
+# parenthesised (make/tests on the ztop machine depend on that).
CC = ibm-clang
AS = as
@@ -28,9 +30,9 @@ LDFLAGS = -Wl,'-bAC(1)'
OBJ = src/zvslist.o
all:
- @uname -s | grep OS/390 >/dev/null || \
+ @(uname -s | grep OS/390 > /dev/null) || \
{ echo "ztop builds only on z/OS; this tree is a backup copy"; exit 1; }
- @exec $(MAKE) ztop
+ $(MAKE) ztop
ztop: src/ztop.c $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ src/ztop.c $(OBJ)