scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit ac8799d431899a20cb665b00ea8c38ad905dca4d
parent f4f5907f5e1083da2c49a79c1966c85b19d9a709
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 17:38:51 +0100

build: Fix recursive DIRS rule

POSIX forces to have a non null target in every rule
but the rule:

	$(DIRS): FORCE

could be wrong if DIRS was not defined. Just to avoid
the problem a dummy target is added to force at least
one target in the rule.

Diffstat:
Mscripts/rules.mk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/rules.mk b/scripts/rules.mk @@ -112,7 +112,7 @@ FORALL = +@set -e ;\ cd -; \ done -$(DIRS): FORCE +$(DIRS) DUMMY : FORCE +@cd $@ && $(MAKE) # Generic rules