Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 1 | LEVEL = ../.. |
Daniel Dunbar | b32644f | 2009-01-19 18:50:49 +0000 | [diff] [blame] | 2 | DIRS := lib Driver docs tools |
Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 3 | |
| 4 | include $(LEVEL)/Makefile.common |
| 5 | |
Mike Stump | 0796317 | 2009-01-20 21:10:41 +0000 | [diff] [blame] | 6 | ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT)) |
| 7 | test:: |
| 8 | $(Verb) if [ ! -f test/Makefile ]; then \ |
| 9 | $(MKDIR) test; \ |
| 10 | $(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \ |
| 11 | fi |
| 12 | endif |
| 13 | |
Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 14 | test:: |
Chris Lattner | 513a6f7 | 2008-04-06 22:32:01 +0000 | [diff] [blame] | 15 | @ $(MAKE) -C test |
Gabor Greif | e8a193c | 2008-03-18 06:14:16 +0000 | [diff] [blame] | 16 | |
| 17 | report:: |
Chris Lattner | 513a6f7 | 2008-04-06 22:32:01 +0000 | [diff] [blame] | 18 | @ $(MAKE) -C test report |
Chris Lattner | 4b00965 | 2007-07-25 00:24:17 +0000 | [diff] [blame] | 19 | |
| 20 | clean:: |
Chris Lattner | 513a6f7 | 2008-04-06 22:32:01 +0000 | [diff] [blame] | 21 | @ $(MAKE) -C test clean |
Gabor Greif | efce712 | 2008-03-20 14:28:22 +0000 | [diff] [blame] | 22 | |
Mike Stump | 061c0e1 | 2009-02-12 02:25:47 +0000 | [diff] [blame] | 23 | tags:: |
| 24 | $(Verb) etags `find . -type f -name \*.h | grep -v /lib/Headers | grep -v /test/` `find . -type f -name \*.cpp | grep -v /lib/Headers | grep -v /test/` |
| 25 | |
Gabor Greif | efce712 | 2008-03-20 14:28:22 +0000 | [diff] [blame] | 26 | .PHONY: test report clean |