Skip to content
Snippets Groups Projects
Commit 5fff0193 authored by James K. Lowden's avatar James K. Lowden :anchor:
Browse files

correct srcextra

parent c4dcdfd4
No related branches found
No related tags found
No related merge requests found
# Top level -*- makefile -*- fragment for Cobol
# Copyright (C) 2016 Free Software Foundation, Inc.
# Copyright (C) 2021-2024 Free Software Foundation, Inc.
# This file is part of GCC.
......@@ -42,7 +42,6 @@ gcobol_INSTALL_NAME := $(shell echo gcobol|sed '$(program_transform_name)')
gcobol_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gcobol|sed '$(program_transform_name)')
cobol: cobol1$(exeext)
.PHONY: cobol
BINCLUDE ?= ./gcc
......@@ -159,23 +158,6 @@ 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/
# See "Trailing context is getting confused with trailing optional patterns"
# in Flex manual. We suppress those messages, as a convenience.
FLEX_WARNING = warning, dangerous trailing context
......@@ -263,6 +245,24 @@ cobol/scan.o: cobol/scan.c \
cobol/cdf.c \
cobol/parse.c
#
# 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 cobol/scan.c
ln -f $^ cobol/parse.h cobol/cdf.h $(srcdir)/cobol/
# And the cobol1.exe front end
cobol1$(exeext): $(cobol1_OBJS) $(BACKEND) $(LIBDEPS) attribs.o
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment