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/*