From 2f31a136daf4efaadf81519985441cde70d69b5b Mon Sep 17 00:00:00 2001
From: "James K. Lowden" <jklowden@symas.com>
Date: Thu, 6 Feb 2025 08:46:16 -0500
Subject: [PATCH] revise commentary

---
 gcc/cobol/Make-lang.in | 35 +++++++++++++++++++++++++----------
 1 file changed, 25 insertions(+), 10 deletions(-)

diff --git a/gcc/cobol/Make-lang.in b/gcc/cobol/Make-lang.in
index 358a793a50ce..cc37639e295e 100644
--- a/gcc/cobol/Make-lang.in
+++ b/gcc/cobol/Make-lang.in
@@ -150,16 +150,6 @@ gcobol$(exeext): \
 
 # First, files needed for parsing:
 
-# To establish prerequisites for parse.o, cdf.o, and scan.o,
-#   1. capture the "make -n" output 
-#   2. eliminate compiler options, leaving only preprocessor options (-D and -I)
-#   3. add -E -MM
-#
-# The below lists of include files for the the generated files is
-# postprocessed: the files are one per line, used "realpath
-# --relative-to=$PWD" to rationalize them, and sorted.  We include
-# parse.c in the list for scan.o because that's the one make(1) knows about.
-#
 cobol/parse.c: cobol/parse.y
 	$(BISON) -o $@ $(YFLAGS)				\
 		--defines=cobol/parse.h			\
@@ -169,6 +159,20 @@ cobol/cdf.c: cobol/cdf.y
 	$(BISON) -o $@ $(YFLAGS)						\
 		--defines=cobol/cdf.h --report-file=cobol/cdf.out $<
 
+
+# The src<foo> targets are executed if
+# ‘--enable-generated-files-in-srcdir’ was specified as a configure
+# option.
+#
+# srcextra copies generated dependencies into the source
+# directory. This is used for files such as Flex/Bison output: files
+# that are not version-controlled but should be included in any
+# release tarballs.
+#
+# Although versioned snapshots require Flex to be installed, they do
+# not require Bison.  Release tarballs always include Flex/Bison
+# output, and do not require those tools to be installed.
+
 cobol.srcextra: cobol/parse.c cobol/cdf.c
 	ln -f $^ cobol/parse.h cobol/cdf.h $(srcdir)/cobol/
 
@@ -183,6 +187,17 @@ cobol/scan.c: cobol/scan.l
 		  exit nerr}' $@~
 	@rm $@~
 
+
+# To establish prerequisites for parse.o, cdf.o, and scan.o,
+#   1. capture the "make -n" output 
+#   2. eliminate compiler options, leaving only preprocessor options (-D and -I)
+#   3. add -E -MM
+#
+# The below lists of include files for the the generated files is
+# postprocessed: the files are one per line, used "realpath
+# --relative-to=$PWD" to rationalize them, and sorted.  We include
+# parse.c in the list for scan.o because that's the one make(1) knows about.
+
 cobol/cdf.o: cobol/cdf.c			\
 	$(srcdir)/cobol/cbldiag.h		\
 	$(srcdir)/cobol/cdfval.h		\
-- 
GitLab