[MPlayer-cvslog] r38285 - in trunk: Makefile help/help_check.sh

ib subversion at mplayerhq.hu
Sun Feb 28 23:32:34 EET 2021


Author: ib
Date: Sun Feb 28 23:32:34 2021
New Revision: 38285

Log:
Improve testing of the help message header files.

Let the Makefile check them individually, but in parallel.

Additionally, rename the target.

Modified:
   trunk/Makefile
   trunk/help/help_check.sh

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Sun Feb 28 23:31:10 2021	(r38284)
+++ trunk/Makefile	Sun Feb 28 23:32:34 2021	(r38285)
@@ -766,8 +766,10 @@ config.mak: configure
 	@echo "####### Please run ./configure again - it's changed! #######"
 	@echo "############################################################"
 
-checkhelp: help/help_mp*.h
-	help/help_check.sh $(CC) $^
+helpcheck: $(addsuffix elpcheck,$(wildcard help/help_mp-*.h))
+
+%.helpcheck: %.h
+	help/help_check.sh $(CC) $<
 
 help_mp.h: help/help_mp-en.h $(HELP_FILE)
 	help/help_create.sh $(HELP_FILE) $(CHARSET)
@@ -1108,7 +1110,7 @@ dhahelperclean:
 -include $(DEP_FILES) $(DRIVER_DEP_FILES) $(TESTS_DEP_FILES) $(TOOLS_DEP_FILES) $(DHAHELPER_DEP_FILES)
 
 .PHONY: all doxygen *install* *tools drivers dhahelper*
-.PHONY: checkheaders *clean tests check_checksums fatetest checkhelp
+.PHONY: checkheaders *clean tests check_checksums fatetest helpcheck
 .PHONY: doc html-chunked* html-single* xmllint*
 
 # Disable suffix rules.  Most of the builtin rules are suffix rules,

Modified: trunk/help/help_check.sh
==============================================================================
--- trunk/help/help_check.sh	Sun Feb 28 23:31:10 2021	(r38284)
+++ trunk/help/help_check.sh	Sun Feb 28 23:32:34 2021	(r38285)
@@ -2,7 +2,7 @@
 # Check help message header files for conversion specifications and
 # valid string constant definitions.
 
-CHECK=checkhelp
+CHECK=helpcheck$$
 
 SYMCONST_REGEX="[A-Za-z0-9_]\\+"
 CONVSPEC_REGEX="%[^diouxXeEfFgGaAcspn%]*[diouxXeEfFgGaAcspn%][0-9]*"


More information about the MPlayer-cvslog mailing list