Page 1 of 1

Running a program after linking

Posted: Thu Oct 24, 2024 3:12 pm
by steved
The standard 'make' process runs other programs once linking is complete - for example the one that generates the listing.
Is it possible to add another similar task without editing the Chibi standard files?
(I've got it working by editing rules.mk at present)

Re: Running a program after linking

Posted: Thu Oct 24, 2024 3:56 pm
by Giovanni
Hi,

Maybe checking for an environment variable then executing the command specified in there, or adding extra targets in Makefile after including rules.mk.

A while ago somebody added those PRE_MAKE_ALL_RULE_HOOK, POST_MAKE_ALL_RULE_HOOK but I don't remember how those are used.

Giovanni