From b820f041ae470de7a40a842cd6ad53512a1bf214 Mon Sep 17 00:00:00 2001 From: COLIN Cyril Date: Mon, 14 Oct 2019 13:38:17 +0200 Subject: [PATCH] fix makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3901323..2ae09e9 100644 --- a/Makefile +++ b/Makefile @@ -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/*