summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--cfg.mk6
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 0446e4344..f80c4a628 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -170,4 +170,8 @@ check-git-hook-script-sync:
rm -rf $$t; \
test $$fail = 0
+.PHONY: all_programs
+all_programs:
+ @cd ./src && $(MAKE) -s $@
+
include $(top_srcdir)/doc/local.mk
diff --git a/cfg.mk b/cfg.mk
index 9244225e1..e6e0828c7 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -171,14 +171,12 @@ sc_long_lines:
# grep -E " {2,6}-.*[^.] [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')
# but that would miss descriptions not on the same line as the -option.
ALL_RECURSIVE_TARGETS += sc_option_desc_uppercase
-sc_option_desc_uppercase:
- @$(MAKE) -s -C src all_programs
+sc_option_desc_uppercase: all_programs
@$(MAKE) -s -C man $@
# Ensure all man/*.[1x] files are present
ALL_RECURSIVE_TARGETS += sc_man_file_correlation
-sc_man_file_correlation:
- @$(MAKE) -s -C src all_programs
+sc_man_file_correlation: all_programs
@$(MAKE) -s -C man $@
# Ensure that the end of each release's section is marked by two empty lines.