Makefile.in (echo_quoted_to_gtyp): New template for outputing filenames to gtyp-gen.h.
2005-07-07 Kelley Cook <kcook@gcc.gnu.org> * Makefile.in (echo_quoted_to_gtyp): New template for outputing filenames to gtyp-gen.h. (s-typ-gen): Use it in place of for loops. From-SVN: r101708
This commit is contained in:
parent
24bce1fd23
commit
2f035a33a5
|
@ -1,3 +1,9 @@
|
||||||
|
2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
|
||||||
|
|
||||||
|
* Makefile.in (echo_quoted_to_gtyp): New template for outputing
|
||||||
|
filenames to gtyp-gen.h.
|
||||||
|
(s-typ-gen): Use it in place of for loops.
|
||||||
|
|
||||||
2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
|
2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
|
||||||
|
|
||||||
* hooks.c (hook_bool_rtx_int_false): New function.
|
* hooks.c (hook_bool_rtx_int_false): New function.
|
||||||
|
|
|
@ -2724,6 +2724,11 @@ gt-tree-phinodes.h gt-tree-nested.h \
|
||||||
gt-tree-ssa-operands.h gt-tree-ssa-propagate.h \
|
gt-tree-ssa-operands.h gt-tree-ssa-propagate.h \
|
||||||
gt-stringpool.h gt-targhooks.h : s-gtype ; @true
|
gt-stringpool.h gt-targhooks.h : s-gtype ; @true
|
||||||
|
|
||||||
|
define echo_quoted_to_gtyp
|
||||||
|
echo "\"$(gtyp)\", " >> tmp-gtyp.h
|
||||||
|
|
||||||
|
endef
|
||||||
|
|
||||||
gtyp-gen.h: s-gtyp-gen ; @true
|
gtyp-gen.h: s-gtyp-gen ; @true
|
||||||
s-gtyp-gen: Makefile
|
s-gtyp-gen: Makefile
|
||||||
echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h
|
echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h
|
||||||
|
@ -2731,24 +2736,16 @@ s-gtyp-gen: Makefile
|
||||||
echo "\"$(GTFILES_SRCDIR)\"" >> tmp-gtyp.h
|
echo "\"$(GTFILES_SRCDIR)\"" >> tmp-gtyp.h
|
||||||
echo ";" >> tmp-gtyp.h
|
echo ";" >> tmp-gtyp.h
|
||||||
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
|
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
|
||||||
ll="$(GTFILES_FILES_FILES)"; \
|
$(foreach gtyp,$(GTFILES_FILES_FILES),$(echo_quoted_to_gtyp))
|
||||||
for f in $$ll; do \
|
|
||||||
echo "\"$$f\", "; done >> tmp-gtyp.h
|
|
||||||
echo "NULL};" >> tmp-gtyp.h
|
echo "NULL};" >> tmp-gtyp.h
|
||||||
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
|
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
|
||||||
ff="$(GTFILES_FILES_LANGS)"; \
|
$(foreach gtyp,$(GTFILES_FILES_LANGS),$(echo_quoted_to_gtyp))
|
||||||
for f in $$ff; do \
|
|
||||||
echo "\"$$f\", " ; done >> tmp-gtyp.h
|
|
||||||
echo "NULL};" >> tmp-gtyp.h
|
echo "NULL};" >> tmp-gtyp.h
|
||||||
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
|
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
|
||||||
gf="$(GTFILES)"; \
|
$(foreach gtyp,$(GTFILES),$(echo_quoted_to_gtyp))
|
||||||
for f in $$gf; do \
|
|
||||||
echo "\"$$f\", "; done >> tmp-gtyp.h
|
|
||||||
echo " NULL};" >> tmp-gtyp.h
|
echo " NULL};" >> tmp-gtyp.h
|
||||||
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
|
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
|
||||||
gf="$(GTFILES_LANG_DIR_NAMES)"; \
|
$(foreach gtyp,$(GTFILES_LANG_DIR_NAMES),$(echo_quoted_to_gtyp))
|
||||||
for l in $$gf; do \
|
|
||||||
echo "\"$$l\", "; done >> tmp-gtyp.h
|
|
||||||
echo "NULL};" >> tmp-gtyp.h
|
echo "NULL};" >> tmp-gtyp.h
|
||||||
$(SHELL) $(srcdir)/../move-if-change tmp-gtyp.h gtyp-gen.h
|
$(SHELL) $(srcdir)/../move-if-change tmp-gtyp.h gtyp-gen.h
|
||||||
$(STAMP) s-gtyp-gen
|
$(STAMP) s-gtyp-gen
|
||||||
|
|
Loading…
Reference in New Issue