build: fix syntax-check issues

* cfg.mk: We do want to gettextize the examples.
* po/POTFILES.in: Adjust.
This commit is contained in:
Akim Demaille
2020-04-29 08:44:27 +02:00
parent 8e11933e41
commit 52ababbc89
3 changed files with 5 additions and 1 deletions

2
cfg.mk
View File

@@ -156,7 +156,7 @@ exclude = \
$(call exclude, \
bindtextdomain=^lib/main.c$$ \
cast_of_argument_to_free=^src/muscle-tab.c$$ \
po_check=^(examples|tests)/|(^po/POTFILES.in|.md)$$ \
po_check=^tests|(^po/POTFILES.in|.md)$$ \
preprocessor_indentation=^data/|^lib/|^src/parse-gram.[ch]$$ \
program_name=^lib/main.c$$ \
prohibit_always-defined_macros=^data/skeletons/yacc.c$$ \

View File

@@ -1,4 +1,5 @@
examples/c/bistromathic/parse.y
examples/java/calc/Calc.y
src/complain.c
src/conflicts.c
src/files.c

View File

@@ -27,6 +27,9 @@
strings to gettextize by hand.
*/
// Please syntax-check.
#include <config.h>
static const char *const msgid[] =
{
N_("end of file"),