Clean up some "clean:" targets so they use $(VERB) and don't print anything
[oota-llvm.git] / utils / Burg / Makefile
1 ##===- utils/Burg/Makefile ------------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../..
10 TOOLNAME = burg
11 ExtraSource = gram.tab.c
12
13 include $(LEVEL)/Makefile.common
14
15 gram.tab.c gram.tab.h:: gram.yc
16         $(VERB) $(BISON) -o gram.tab.c -d $<
17
18 $(SourceDir)/lex.c: gram.tab.h
19
20 clean::
21         $(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
22
23 #$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
24
25 doc.dvi: doc.tex
26         $(VERB) latex doc; latex doc
27
28
29 test:: $(TOOLEXENAME_G) sample.gr
30         $(TOOLEXENAME_G) -I     <sample.gr   >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
31         $(TOOLEXENAME_G) -I      sample.gr   >tmp && cmp tmp sample.c
32         $(TOOLEXENAME_G) -I     <sample.gr -o tmp && cmp tmp sample.c
33         $(TOOLEXENAME_G) -I      sample.gr -o tmp && cmp tmp sample.c
34         $(TOOLEXENAME_G) -I -O0 <sample.gr   >tmp && cmp tmp sample.c
35         $(TOOLEXENAME_G) -I -=  <sample.gr   >tmp && cmp tmp sample.c
36         $(RM) -f tmp sample.c