-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (46 loc) · 1.66 KB
/
Makefile
File metadata and controls
62 lines (46 loc) · 1.66 KB
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
SHELL := /bin/bash
.DEFAULT_GOAL := help
PNPM ?= pnpm
CARGO ?= cargo
TAURI := $(PNPM) exec tauri
ARGS ?= --help
.PHONY: help install dev tauri-dev web-dev server cli build-web prepare-desktop check-rust tauri-build package-host clean
help:
@printf "\nAvailable targets:\n"
@printf " make dev Start Tauri desktop dev mode\n"
@printf " make tauri-dev Alias of make dev\n"
@printf " make web-dev Start the Next.js web dev server on http://127.0.0.1:3000\n"
@printf " make server Start the production web/API server (requires prior build)\n"
@printf " make cli ARGS='...' Run the CLI, for example: make cli ARGS='profiles list --json'\n"
@printf " make install Install pnpm dependencies\n"
@printf " make build-web Build the Next.js app\n"
@printf " make prepare-desktop Prepare Tauri static frontend resources\n"
@printf " make check-rust Run cargo check for src-tauri\n"
@printf " make tauri-build Build the Tauri app without bundling\n"
@printf " make package-host Build native Tauri bundles for the current host\n"
@printf " make clean Remove Next.js and Tauri build artifacts\n\n"
install:
$(PNPM) install
dev:
$(TAURI) dev
tauri-dev: dev
web-dev:
$(PNPM) run dev:desktop-web
server:
$(PNPM) run server
cli:
$(PNPM) run cli -- $(ARGS)
build-web:
$(PNPM) run build:web
prepare-desktop:
$(PNPM) run tauri:build:prep
check-rust:
$(CARGO) check --manifest-path src-tauri/Cargo.toml
tauri-build:
$(TAURI) build --no-bundle
package-host:
$(TAURI) build
clean:
rm -rf .next
rm -rf src-tauri/target
rm -rf src-tauri/resources/frontend