1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

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 :(
This commit is contained in:
Jon Trulson 2021-07-04 18:07:10 -06:00
parent 72e6e90706
commit 1fda5afcc2

View file

@ -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