mirror of git://gcc.gnu.org/git/gcc.git
libcc1: Clean compiler-name.h (PR70173)
Since the file is generated from a Makefile fragment, it needs to be added to MOSTLYCLEANFILES. The directory itself is still not deleted (just like the gnattools and gotools directories). 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org> libcc1/ PR bootstrap/70173 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h . (compiler-name.h): Shorten recipe so that it fits the line. * Makefile.in: Regenerate. From-SVN: r234874
This commit is contained in:
parent
890e48b460
commit
fa246aa37a
|
|
@ -1,3 +1,10 @@
|
||||||
|
2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
|
||||||
|
|
||||||
|
PR bootstrap/70173
|
||||||
|
* Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
|
||||||
|
(compiler-name.h): Shorten recipe so that it fits the line.
|
||||||
|
* Makefile.in: Regenerate.
|
||||||
|
|
||||||
2016-03-14 Andreas Schwab <schwab@suse.de>
|
2016-03-14 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
|
* configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,12 @@ cc1lib_LTLIBRARIES = libcc1.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILT_SOURCES = compiler-name.h
|
BUILT_SOURCES = compiler-name.h
|
||||||
|
MOSTLYCLEANFILES = compiler-name.h
|
||||||
|
|
||||||
# Put this in a header so we don't run sed for each compilation. This
|
# Put this in a header so we don't run sed for each compilation. This
|
||||||
# is also simpler to debug as one can easily see the constant.
|
# is also simpler to debug as one can easily see the constant.
|
||||||
compiler-name.h: Makefile
|
compiler-name.h: Makefile
|
||||||
echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > compiler-name.h
|
echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > $@
|
||||||
|
|
||||||
|
|
||||||
shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
|
shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
|
||||||
|
|
|
||||||
|
|
@ -296,6 +296,7 @@ cc1libdir = $(libdir)/$(libsuffix)
|
||||||
@ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = libcc1plugin.la
|
@ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = libcc1plugin.la
|
||||||
@ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la
|
@ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la
|
||||||
BUILT_SOURCES = compiler-name.h
|
BUILT_SOURCES = compiler-name.h
|
||||||
|
MOSTLYCLEANFILES = compiler-name.h
|
||||||
shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
|
shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \
|
||||||
marshall.cc marshall.hh rpc.hh status.hh
|
marshall.cc marshall.hh rpc.hh status.hh
|
||||||
|
|
||||||
|
|
@ -563,6 +564,7 @@ install-strip:
|
||||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
fi
|
fi
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
|
-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
|
||||||
|
|
||||||
clean-generic:
|
clean-generic:
|
||||||
|
|
||||||
|
|
@ -672,7 +674,7 @@ override LDFLAGS := $(filter-out -fsanitize=address,$(LDFLAGS))
|
||||||
# Put this in a header so we don't run sed for each compilation. This
|
# Put this in a header so we don't run sed for each compilation. This
|
||||||
# is also simpler to debug as one can easily see the constant.
|
# is also simpler to debug as one can easily see the constant.
|
||||||
compiler-name.h: Makefile
|
compiler-name.h: Makefile
|
||||||
echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > compiler-name.h
|
echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > $@
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue