forked from danger/kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (22 loc) · 798 Bytes
/
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
TOOL_NAME = danger-kotlin
PREFIX = /usr/local
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)
BUILD_PATH = danger-kotlin/build/bin/runner/releaseExecutable/$(TOOL_NAME).kexe
LIB_INSTALL_PATH = $(PREFIX)/lib/danger
LIB_FLAT_DIR = $(LIB_INSTALL_PATH)/libs
install: build
mkdir -p $(PREFIX)/bin
mkdir -p $(LIB_INSTALL_PATH)
mkdir -p $(LIB_FLAT_DIR)
cp -f $(BUILD_PATH) $(INSTALL_PATH)
cp -f danger-kotlin-library/build/libs/danger-kotlin.jar $(LIB_INSTALL_PATH)/danger-kotlin.jar
build:
./gradlew build -p danger-plugin-installer
./gradlew install -p danger-plugin-installer
./gradlew shadowJar -p danger-kotlin-library
./gradlew build -p danger-kotlin-kts
./gradlew build -p danger-kotlin
uninstall:
rm -rf $(INSTALL_PATH)
rm -f $(LIB_INSTALL_PATH)/danger-kotlin.jar
rm -f $(LIB_FLAT_DIR)