-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
28 lines (21 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
include engine/make/enable-java-shell.mk
.PHONY : default
default : resources/daisy-pipeline
ENGINE_VERSION := $(shell println(xpath(new File("engine/pom.xml"), "/*/*[local-name()='version']/text()"));)
zip_classifier := win
resources/daisy-pipeline : engine/target/assembly-$(ENGINE_VERSION)-$(zip_classifier).zip
rm("$@");
unzip(new File("$<"), new File("$(dir $@)"));
engine/target/assembly-$(ENGINE_VERSION)-$(zip_classifier).zip : \
engine/pom.xml \
$(shell Files.walk(Paths.get("engine/src")).filter(Files::isRegularFile).forEach(System.out::println);)
exec("$(MAKE)", "-C", "engine", "zip-$(zip_classifier)", \
"--", "--without-osgi", \
"--with-simple-api", \
"--without-cli", \
"--without-updater", \
"--without-webservice", \
"--without-persistence");
clean :
rm("resources/daisy-pipeline");
exec("$(MAKE)", "-C", "engine", "clean");