fix makefile

This commit is contained in:
COLIN Cyril 2019-10-14 13:38:17 +02:00
parent 483a5a8189
commit b820f041ae
1 changed files with 3 additions and 1 deletions

View File

@ -1,12 +1,14 @@
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 $(shell cd build/; find -type f -name '*.class')
cd build/; jar cvmf ../MANIFEST.MF ../Elevator.jar $(patsubst %,'%',$(shell cd build; find -name '*.class'))
clean:
-rm -r build/*