summaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-04-09 15:39:50 +0000
committerH.J. Lu <hjl@lucon.org>2009-04-09 15:39:50 +0000
commitca17ed0d8f5a3ce133301760ac31c6ec3481a897 (patch)
tree28992f539c47cc8db5e1393b3ab787b6ed04ec3a /Makefile.tpl
parent8e12ad08281ab7c3143398ae40a582464c650b3a (diff)
downloadgdb-ca17ed0d8f5a3ce133301760ac31c6ec3481a897.tar.gz
2009-04-09 Steve Ellcey <sje@cup.hp.com>
* Makefil.def (languages): New entries. * Makefile.tpl (check-gcc-*): New generic target. * Makefile.in: Regenerate.
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl22
1 files changed, 9 insertions, 13 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index acb349ff742..1de3b0605cf 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1216,19 +1216,15 @@ cross: all-build all-gas all-ld
@endif gcc-no-bootstrap
@if gcc
-.PHONY: check-gcc-c++
-check-gcc-c++:
- @if [ -f ./gcc/Makefile ] ; then \
- r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(HOST_EXPORTS) \
- (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
- else \
- true; \
- fi
-
-.PHONY: check-c++
-check-c++: check-target-libstdc++-v3 check-gcc-c++
+[+ FOR languages +]
+.PHONY: check-gcc-[+language+] check-[+language+]
+check-gcc-[+language+]:
+ r=`${PWD_COMMAND}`; export r; \
+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+ $(HOST_EXPORTS) \
+ (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) [+gcc-check-target+]);
+check-[+language+]: check-gcc-[+language+][+ IF lib-check-target +] [+ lib-check-target +][+ ENDIF lib-check-target +]
+[+ ENDFOR languages +]
# Install the gcc headers files, but not the fixed include files,
# which Cygnus is not allowed to distribute. This rule is very