smarter Makefile, fixed grammar

git-svn-id: svn://anubis/gvsu@113 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh committed 2008-06-01 19:18:51 +00:00
1 parent b6a5a19e1e
commit daae9b09b4
3 files changed
+9 -7

No files matched your search

+5 -4
View File
@@ -1,12 +1,13 @@
PKG := jholtrop.gvsu.cs675.bottomup
PKGPATH := $(subst .,/,$(PKG))
PARSER := $(PKGPATH)/parser/Parser.java
GRAMMAR := arithmetic.grammar
all: sablecc prog
all: $(PARSER) prog
.PHONY: sablecc
sablecc:
sablecc arithmetic.grammar
$(PARSER): $(GRAMMAR)
sablecc $(GRAMMAR)
.PHONY: prog
prog: