[llvm-commits] CVS: llvm/utils/Burg/Makefile

Reid Spencer reid at x10sys.com
Sat Oct 30 02:19:48 PDT 2004



Changes in directory llvm/utils/Burg:

Makefile updated: 1.29 -> 1.30
---
Log message:

Internalize variable names to prevent recursive assignment. Cleanup docs.

---
Diffs of the changes:  (+18 -15)

Index: llvm/utils/Burg/Makefile
diff -u llvm/utils/Burg/Makefile:1.29 llvm/utils/Burg/Makefile:1.30
--- llvm/utils/Burg/Makefile:1.29	Thu Oct 28 11:48:13 2004
+++ llvm/utils/Burg/Makefile	Sat Oct 30 04:19:36 2004
@@ -8,31 +8,34 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 TOOLNAME = burg
-BUILT_SOURCES = gram.tab.c
+BUILT_SOURCES = gram.tab.c gram.tab.h
 
 EXTRA_DIST = gram.yc gram.tab.c gram.tab.h sample.gr
 
 include $(LEVEL)/Makefile.common
 
 gram.tab.c gram.tab.h: gram.yc
-	$(VERB) $(BISON) -o gram.tab.c -d $<
+	$(Verb) $(BISON) -o gram.tab.c -d $<
 
-$(OBJDIR)/lex.o : gram.tab.h
+$(ObjDir)/lex.o : gram.tab.h
 
 clean::
-	$(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
-
-#$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
+	$(Verb) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
 
 doc.dvi: doc.tex
-	$(VERB) latex doc; latex doc
-
+	$(Verb) latex doc; latex doc
 
-test:: $(TOOLEXENAME_G) sample.gr
-	$(TOOLEXENAME_G) -I     <sample.gr   >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
-	$(TOOLEXENAME_G) -I      sample.gr   >tmp && cmp tmp sample.c
-	$(TOOLEXENAME_G) -I     <sample.gr -o tmp && cmp tmp sample.c
-	$(TOOLEXENAME_G) -I      sample.gr -o tmp && cmp tmp sample.c
-	$(TOOLEXENAME_G) -I -O0 <sample.gr   >tmp && cmp tmp sample.c
-	$(TOOLEXENAME_G) -I -=  <sample.gr   >tmp && cmp tmp sample.c
+check:: $(ToolBuildPath) $(BUILD_SRC_DIR)/sample.gr
+	$(ToolBuildPath) -I <$(BUILD_SRC_DIR)/sample.gr   >sample.c \
+	  && $(CC) $(CFLAGS) -o sample sample.c && ./sample
+	$(ToolBuildPath) -I      $(BUILD_SRC_DIR)/sample.gr   >tmp \
+	  && cmp tmp sample.c
+	$(ToolBuildPath) -I     <$(BUILD_SRC_DIR)/sample.gr -o tmp \
+	  && cmp tmp sample.c
+	$(ToolBuildPath) -I      $(BUILD_SRC_DIR)/sample.gr -o tmp \
+	  && cmp tmp sample.c
+	$(ToolBuildPath) -I -O0 <$(BUILD_SRC_DIR)/sample.gr   >tmp \
+	  && cmp tmp sample.c
+	$(ToolBuildPath) -I -=  <$(BUILD_SRC_DIR)/sample.gr   >tmp \
+	  && cmp tmp sample.c
 	$(RM) -f tmp sample.c






More information about the llvm-commits mailing list