chore: update Makefile - add variables and targets
This commit is contained in:
parent
ba6f079c9f
commit
2edaf3ed79
15
Makefile
15
Makefile
|
@ -1,5 +1,9 @@
|
|||
# JFLAGS = -g -verbose -Xlint:all -d ./didyousayspiderman/out
|
||||
JFLAGS = -g -verbose -d ./didyousayspiderman/out
|
||||
PROJECT = didyousayspiderman
|
||||
OUTDIR = $(PROJECT)/out
|
||||
J = java
|
||||
RUNFLAGS = -classpath $(OUTDIR) $(PROJECT).crawler -u https://git.dotya.ml
|
||||
JFLAGS = -g -verbose -d ./$(OUTDIR)
|
||||
JC = javac
|
||||
.SUFFIXES: .java .class
|
||||
.java.class:
|
||||
|
@ -12,10 +16,15 @@ CLASSES:=$(JAVA_CLASSES)
|
|||
|
||||
default: build
|
||||
|
||||
.PHONY: build
|
||||
.PHONY: build clean testrun
|
||||
build: $(CLASSES:.java=.class)
|
||||
|
||||
.PHONY: clean
|
||||
runtest:
|
||||
@echo [*] running a testrun
|
||||
$(J) $(RUNFLAGS)
|
||||
|
||||
test: build runtest clean
|
||||
|
||||
clean:
|
||||
@echo [*] cleaning up
|
||||
$(RM)v ./*/{out/*,src/*}/*.class
|
||||
|
|
Loading…
Reference in New Issue