From 1fda5afcc26243d704a5cbbe3f03e39bde723905 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 4 Jul 2021 18:07:10 -0600 Subject: [PATCH] dtappbuilder: try to fix a dep error causeing every make to rebuild With the addition of dtappbuilder to autotools, every make run (including make install) causes src/ab to regenerate files that cause the whole directory to be recompiled, even on a 'make install'. This seems to be primarily caused by dtbuilder.msg (and possibly dtbuilder.c) being modified after it is generated, which is apparently normal behavior for dtcodegen. This fix sets both dtbuilder.msg and dtbuilder.c as "order-dependant prequisites" so that they are always generated first (there are already rules to do generate them) and then subsequently the only thing required is that they exist since we don't care if they are modified after that point. If you need to make changes to them, edit their respective .src files instead. This seems to resolve the issue, but perhaps at the expense of adding another requirement to use gmake. We also need to disable parallel building in this module :( --- cde/programs/dtappbuilder/src/ab/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtappbuilder/src/ab/Makefile.am b/cde/programs/dtappbuilder/src/ab/Makefile.am index 316f06f08..bd279d40f 100644 --- a/cde/programs/dtappbuilder/src/ab/Makefile.am +++ b/cde/programs/dtappbuilder/src/ab/Makefile.am @@ -1,5 +1,7 @@ MAINTAINERCLEANFILES = Makefile.in +.NOTPARALLEL: + appdefaultsdir = ${prefix}/app-defaults/C ABINCLUDES = -I../include -I../include/ab_private -I../libABil @@ -306,7 +308,7 @@ textp_ui.c + textp_ui.h + textp_stubs.c: $(PROJFILE).bip textp.bil else -dtbuilder.h dtb_utils.c dtb_utils.h: dtbuilder.bip dtbuilder.c dtbuilder.msg +dtbuilder.h dtb_utils.c dtb_utils.h: dtbuilder.bip |dtbuilder.c dtbuilder.msg $(DTCODEGEN) -changed -merge -p dtbuilder.bip -main PROJFILE = dtbuilder