mirror of
git://repo.or.cz/tinycc.git
synced 2026-11-05 05:36:35 +08:00
Makefile: restore doc targets
Commit 44977b0 ("tcctest: restore & combine", 2026-05-06) effectively
changed the run-if macro to "true" - i.e. don't run the command and
don't report that it's skippped. As a result, all the doc targets
were skippped quietly and unconditionally.
Presumably it was a temporary in-development change - the commit
message doesn't mention docs changes, and the doc targets still exist
at Makefile, but this change was not reverted before the commit.
Revert this specific change, which restores the automatic doc targets
(build them only if the command to generate them exists).
This commit is contained in:
parent
97a6d8c75f
commit
4ed845d0db
2
Makefile
2
Makefile
@ -336,7 +336,7 @@ FORCE:
|
|||||||
# some versions of gnu-make do not recognize 'command' as a shell builtin
|
# some versions of gnu-make do not recognize 'command' as a shell builtin
|
||||||
WHICH = sh -c 'command -v $1'
|
WHICH = sh -c 'command -v $1'
|
||||||
|
|
||||||
run-if = $(if $(shell $(call WHICH,$1x)),$S $1 $2,@true||echo "(skipping $@ - no $1)")
|
run-if = $(if $(shell $(call WHICH,$1)),$S $1 $2,echo "(skipping $@ - no $1)")
|
||||||
S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
|
S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user