-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (31 loc) · 893 Bytes
/
Makefile
File metadata and controls
46 lines (31 loc) · 893 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# DO NOT EDIT THIS FILE
SUBMIT := $(wildcard src/main/java/org/cis120/*.java src/test/java/org/cis120/*.java files/*.csv)
EXCLUDE := \
src/main/java/org/cis120/ListNumberGenerator.java \
src/main/java/org/cis120/NumberGenerator.java \
src/main/java/org/cis120/RandomNumberGenerator.java \
src/main/java/org/cis120/ProbabilityDistribution.java
SUBMIT := $(filter-out $(EXCLUDE),$(SUBMIT))
HWNAME := hw08
ts := $(shell /bin/date "+%Y-%m-%d-%H:%M:%S")
ZIPNAME := $(HWNAME)-submit($(ts)).zip
.PHONY: all compile run zip test test-stack-trace checkstyle format clean
all:
compile:
mvn compile
run: compile
mvn exec:java
zip: $(SUBMIT)
zip -j '$(ZIPNAME)' $(SUBMIT)
test:
mvn test
test-stack-trace:
mvn -DtrimStackTrace=false test
checkstyle:
mvn checkstyle:checkstyle
format:
mvn formatter:format
clean:
rm -f src/*.class bin/* test/*.class
rm -rf *.zip
mvn clean