The yconf.c file is generated from the yconf.y yacc source; it is the
main and only source file that is actuall compiled, as it #include-s the
other source files (weird, but that's how it's done upstream).
So yconf.c does not need to be listed as a built source; the other two,
generated from lex and gperf source files, do need to be listed because
they are not part of _SOURCES, but are only in _EXTRA_SOURCES.
However, .c files generated from yacc code are nt considerate as being
intermediate files, and thus are not cleaned automatically.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
.l.c:
$(AM_V_LEX)$(LEXCOMPILE) -o$@ $<
+# yconf.c not listed, because it is the real _SOURCES, but others are
+# in _EXTRA_SOURCES (above), so must be listed:
BUILT_SOURCES += \
libs/parser/hconf.c \
libs/parser/lconf.c
+# Still, .c files generated from .y files are not cleaned by default,
+# so yconf.c must be explicitly listed:
CLEANFILES += \
libs/parser/hconf.c \
libs/parser/lconf.c \