History

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).

Avi Halachmi (:avih) committed 4 months ago

Commit 4ed845d1 parent 97a6d8c1 file · +1 −1Browse files

Unified · Split

Makefile+1−1
@@ -336,7 +336,7 @@ FORCE: · 335 unmodified lines
336# some versions of gnu-make do not recognize 'command' as a shell builtin336# some versions of gnu-make do not recognize 'command' as a shell builtin
337WHICH = sh -c 'command -v $1'337WHICH = sh -c 'command -v $1'
338 338
339run-if = $(if $(shell $(call WHICH,$1x)),$S $1 $2,@true||echo "(skipping $@ - no $1)")339run-if = $(if $(shell $(call WHICH,$1)),$S $1 $2,echo "(skipping $@ - no $1)")
340S = $(if $(findstring yes,$(SILENT)),@$(info * $@))340S = $(if $(findstring yes,$(SILENT)),@$(info * $@))
341 341
342# --------------------------------------------------------------------------342# --------------------------------------------------------------------------

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t