From 08a13e9f2093c158589fee2e2954e755dfbe6492 Mon Sep 17 00:00:00 2001 From: lotherk Date: Sat, 14 Nov 2026 21:22:43 +0000 Subject: [PATCH] MCDE: restore and testcgm are EXTRA_PROGRAMS, not built for the target for nothing (t0197) Both were noinst_PROGRAMS: built, not installed, run by no Makefile.am -- in a cross build two programs compiled for the target that nothing can run (tools/check-buildtools.sh found them). Built only on request now. Native: make mcde-linux for the two directories, exit=0, the regenerated Makefiles say EXTRA_PROGRAMS (build/logs/mcde-linux-2026-11-14-t0197.log). Co-Authored-By: Claude Sonnet 5.5 --- programs/dtdocbook/infolib/Makefile.am | 6 +++++- programs/dtinfo/dtinfo/src/cgm/Makefile.am | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/programs/dtdocbook/infolib/Makefile.am b/programs/dtdocbook/infolib/Makefile.am index a9634bc0..1521326f 100644 --- a/programs/dtdocbook/infolib/Makefile.am +++ b/programs/dtdocbook/infolib/Makefile.am @@ -15,7 +15,11 @@ infolib_PROGRAMS = \ infolib_SCRIPTS = ChangeCaseTitle DeInstallBase Librarian -noinst_PROGRAMS = restore +# MCDE: not installed and run by no Makefile.am of the tree. A cross build +# compiled it for the target and dropped it; a built, uninstalled program is a +# build tool and has to be a host binary (tools/check-buildtools.sh, tasksd +# t0197). Built only on request: make restore. +EXTRA_PROGRAMS = restore AM_LFLAGS = -Cf -L -8 -s AM_YFLAGS = -d diff --git a/programs/dtinfo/dtinfo/src/cgm/Makefile.am b/programs/dtinfo/dtinfo/src/cgm/Makefile.am index 008f6628..e13dba9c 100644 --- a/programs/dtinfo/dtinfo/src/cgm/Makefile.am +++ b/programs/dtinfo/dtinfo/src/cgm/Makefile.am @@ -13,7 +13,11 @@ libcgm_a_SOURCES = cgmcmds.c cgmcommon.c cgmio.c cgmtext.c getcgm.c RANLIB = echo libcgm_a_AR = $(LD) -r -o -noinst_PROGRAMS = testcgm +# MCDE: a test program nothing runs. A cross build compiled it for the target +# and dropped it; a program that is built and not installed is a build tool, +# and a build tool has to be a host binary (tools/check-buildtools.sh, tasksd +# t0197). Built only on request: make testcgm. +EXTRA_PROGRAMS = testcgm testcgm_CPPFLAGS = $(DTINFO_DEFINES) $(DTINFO_INCLUDES) \ -I$(top_srcdir)/include/DtI testcgm_SOURCES = testcgm.c