smarter Makefile, fixed grammar
git-svn-id: svn://anubis/gvsu@113 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
b6a5a19e1e
commit
daae9b09b4
3 files changed
+9
-7
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user