-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 932 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
27
28
29
30
31
32
33
34
# Copyright (c) 2025 Matthias Rustler
# Licensed under the MIT License - see LICENSE for details
.PHONY: all dist clean
SRC_DIR := cmd/iffmaster
RELEASE_DIR := release
ICON := icon.png
all: linux windows darwin wasm
linux:
@echo "Building for Linux"
mkdir -p $(RELEASE_DIR)
cd $(RELEASE_DIR) && fyne package -os linux -src ../$(SRC_DIR) -name iffmaster-linux -icon $(ICON)
windows:
@echo "Building for Windows"
mkdir -p $(RELEASE_DIR)
- cd $(RELEASE_DIR) && fyne package -os windows -src ../$(SRC_DIR) -name iffmaster-windows -icon $(ICON)
darwin:
@echo "Building for Darwin"
mkdir -p $(RELEASE_DIR)
- cd $(RELEASE_DIR) && fyne package -os darwin -src ../$(SRC_DIR) -name iffmaster-darwin -icon $(ICON)
wasm:
@echo "Building for WebAssembly"
mkdir -p $(RELEASE_DIR)
cd $(RELEASE_DIR) && fyne package -os web -src ../$(SRC_DIR) -name iffmaster-wasm -icon $(ICON)
clean:
@echo "Cleaning up"
rm -rf $(RELEASE_DIR)