Perfecting parser, lexer, and parse-tree handling for policy files; Generating skelet...
[iot2.git] / iotjava / Makefile
1 BASE := ..
2
3 include $(BASE)/common.mk
4
5 all: iotparsertree iotparser iotcompiler
6
7 PHONY += iotparsertree
8 iotparsertree:
9         $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotpolicy/tree/*.java
10
11 PHONY += iotparser
12 iotparser:
13         $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotpolicy/parser/*.java
14
15 PHONY += iotcompiler
16 iotcompiler:
17         $(JAVAC) -cp .:$(PARSERJARS) -d $(BIN_DIR) iotpolicy/*.java
18         cp ../config/iotpolicy/*.pol $(BIN_DIR)/iotpolicy/
19
20 PHONY += iotcompilestub
21 iotcompilestub:
22         cd $(BIN_DIR)/iotpolicy; $(JAVA) -cp .:..:../$(PARSERJARS):../$(BIN_DIR) iotpolicy.IoTStubCompiler policy.pol
23
24 PHONY += doc
25 doc: iotruntime iotinstaller
26         $(JAVADOC) -d $(DOCS_DIR) iotpolicy/*.java
27
28 .PHONY: $(PHONY)