This repository has been archived on 2019-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
projet-gl/Makefile

15 lines
365 B
Makefile
Raw Permalink Normal View History

2019-10-02 22:08:43 +02:00
all: build assemble
2019-10-14 13:38:17 +02:00
rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
2019-10-02 22:08:43 +02:00
.PHONY: build
build:
mkdir -p build
2019-10-14 07:22:03 +02:00
javac -Xlint $(shell find src -type f -name '*.java') -d build
2019-10-02 22:08:43 +02:00
assemble:
2019-10-14 13:38:17 +02:00
cd build/; jar cvmf ../MANIFEST.MF ../Elevator.jar $(patsubst %,'%',$(shell cd build; find -name '*.class'))
2019-10-02 22:08:43 +02:00
clean:
2019-10-14 09:16:06 +02:00
-rm -r build/*