-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (32 loc) · 947 Bytes
/
Copy pathmakefile
File metadata and controls
40 lines (32 loc) · 947 Bytes
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
# Makefile
# Define variables
OUTPUT_DEV_DIR = bin
OUTPUT_REL_DIR = publish
OUTPUT_DLL_DIR = plugin
# Default targets
all: plugin
# Target for building (development)
build:
dotnet build --output $(OUTPUT_DEV_DIR)
# Target for publishing (release)
publish:
dotnet publish --configuration Release --output $(OUTPUT_REL_DIR)
# Target for cleaning temporary files
clean:
rm -rf $(OUTPUT_REL_DIR)
rm -rf $(OUTPUT_DEV_DIR)
rm -rf $(OUTPUT_DLL_DIR)
# Target for only compiling the DLL plugin file (for users)
plugin:
dotnet publish --output tmp
mkdir -p $(OUTPUT_DLL_DIR)
cp tmp/Jellyfin.Plugin.TelegramNotifier.dll $(OUTPUT_DLL_DIR)
rm -rf tmp
# Target for only compiling the DLL plugin file (for developers)
dev:
dotnet build --output tmp
mkdir -p $(OUTPUT_DLL_DIR)
cp tmp/Jellyfin.Plugin.TelegramNotifier.dll $(OUTPUT_DLL_DIR)
rm -rf tmp
# Define phony targets (which are not filenames)
.PHONY: all build publish clean plugin dev