15 lines
365 B
Makefile
15 lines
365 B
Makefile
all: build assemble
|
|
|
|
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
|
|
|
|
.PHONY: build
|
|
build:
|
|
mkdir -p build
|
|
javac -Xlint $(shell find src -type f -name '*.java') -d build
|
|
|
|
assemble:
|
|
cd build/; jar cvmf ../MANIFEST.MF ../Elevator.jar $(patsubst %,'%',$(shell cd build; find -name '*.class'))
|
|
|
|
clean:
|
|
-rm -r build/*
|