summaryrefslogtreecommitdiff
path: root/utils/Burg/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-30 09:19:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-30 09:19:36 +0000
commitcc2d1e25f37d0d00c7f7f3ec562be61bc34e54ca (patch)
tree0ce5dd37251c7723bad243a23d047058cb65afaa /utils/Burg/Makefile
parentf1bd4b4215a838c5ff0f3c68600d012d2cdebfa7 (diff)
downloadllvm-cc2d1e25f37d0d00c7f7f3ec562be61bc34e54ca.tar.gz
llvm-cc2d1e25f37d0d00c7f7f3ec562be61bc34e54ca.tar.bz2
llvm-cc2d1e25f37d0d00c7f7f3ec562be61bc34e54ca.tar.xz
Internalize variable names to prevent recursive assignment. Cleanup docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/Burg/Makefile')
-rw-r--r--utils/Burg/Makefile35
1 files changed, 19 insertions, 16 deletions
diff --git a/utils/Burg/Makefile b/utils/Burg/Makefile
index f6eeb94d1c..97750b2a58 100644
--- a/utils/Burg/Makefile
+++ b/utils/Burg/Makefile
@@ -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
-
-
-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
+ $(Verb) latex doc; latex doc
+
+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