-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
executable file
·63 lines (51 loc) · 1.62 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: clean
clean:
mvn clean
.PHONY: compile
compile:
mvn compile
.PHONY: package
package:
mvn package -DskipTests=true
.PHONY: install
install:
mvn install -DskipTests=true
.PHONY: extract
extract:
test $(system)
@echo System = $(system)
cd ffmpeg4java-$(system) && ./extract.sh
.PHONY: dump
dump:
test $(system)
@echo System = $(system)
cd ffmpeg4java-$(system) && ./dump.sh
.PHONY: verify
verify:
test $(system)
@echo System = $(system)
#MAVEN_OPTS="--enable-preview --enable-native-access=ALL-UNNAMED -Djava.library.path=ffmpeg4java-tests/target/lib -Djextract.trace.downcalls=false -Xlog:library" mvn verify -P$(system)
MAVEN_OPTS="--enable-preview --enable-native-access=ALL-UNNAMED -Djava.library.path=ffmpeg4java-tests/target/lib -Djextract.trace.downcalls=false $(properties)" mvn verify -P$(system)
.PHONY: copy-legal
copy-legal:
cp legal/*.txt ffmpeg4java-macos/src/main/resources/META-INF/
cp legal/*.txt ffmpeg4java-linux/src/main/resources/META-INF/
cp legal/*.txt ffmpeg4java-windows/src/main/resources/META-INF/
.PHONY: dist
dist:
rm -fR dist
mkdir -p dist
cp ffmpeg4java-macos/target/com.nextbreakpoint.ffmpeg4java.macos-*.jar dist
cp ffmpeg4java-linux/target/com.nextbreakpoint.ffmpeg4java.linux-*.jar dist
cp ffmpeg4java-windows/target/com.nextbreakpoint.ffmpeg4java.windows-*.jar dist
.PHONY: github-release
github-release:
mvn -Dchannel=github clean package de.jutzig:github-release-plugin:release -Dgithub.draft=true
.PHONY: maven-release
maven-release:
mvn -Dchannel=ossrh clean deploy
.PHONY: set-version
set-version:
test $(version)
mvn versions:set -DnewVersion=$(version)
mvn versions:commit