forked from NVlabs/mixedproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 717 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: all clean check test
ALLOYPATH=./alloy
ALLOYJAR=$(ALLOYPATH)/org.alloytools.alloy.dist.jar
CLASSPATH=".:$(ALLOYJAR)"
#JAVAFLAGS=
all: $(ALLOYPATH)/RunAlloy.class
$(ALLOYJAR):
cd $(ALLOYPATH) && wget https://github.com/AlloyTools/org.alloytools.alloy/releases/download/v5.1.0/org.alloytools.alloy.dist.jar
$(ALLOYPATH)/RunAlloy.class: $(ALLOYPATH)/RunAlloy.java $(ALLOYJAR)
javac $(JAVAFLAGS) -classpath $(CLASSPATH) $<
clean:
rm -f $(ALLOYPATH)/*.class
TESTS=$(wildcard tests/*.test)
check:
parallel -i sh -c "echo {}; ./src/test_to_alloy.py {} > /dev/null || (echo {} failed; exit 1)" -- `ls tests/*.test`
test:
$(foreach file, $(wildcard src/unittest*.py), \
python3 $(file) || exit 1; \
)