Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 1.68 KB
/
Copy pathMakefile
File metadata and controls
47 lines (34 loc) · 1.68 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
.DEFAULT_GOAL := help
APP := target/enso.app
LSREGISTER := /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
.PHONY: help run check test build.macos app app.debug quicklook install install.linux clean
help: ## List the targets
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z_.-]+:.*## / {printf " make %-12s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
run: ## Run enso from source
cargo run
check: ## Type-check without building
cargo check
test: ## Run the app's and the Quick Look renderer's tests
cargo test --bin enso
CARGO_TARGET_DIR=target/quicklook cargo test --manifest-path macos/quicklook/Cargo.toml
build.macos: ## Release build, enso.app with Quick Look, signature and DMG
./scripts/build-mac.sh
app: ## Release enso.app (with Quick Look), no DMG
./scripts/bundle-macos.sh
app.debug: ## Quick unoptimized enso.app for trying changes
./scripts/bundle-macos.sh --debug
quicklook: ## Rebuild only the Quick Look extension inside an existing enso.app
@test -d $(APP) || { echo "No $(APP) yet: run 'make app' first."; exit 1; }
./scripts/build-quicklook.sh $(APP)
codesign --force --sign - $(APP)
install: ## Copy enso.app to /Applications and register it and its Quick Look preview
@test -d $(APP) || { echo "No $(APP) yet: run 'make app' first."; exit 1; }
rm -rf /Applications/Enso.app /Applications/enso.app
cp -R $(APP) /Applications/
$(LSREGISTER) -f /Applications/enso.app
pluginkit -a /Applications/enso.app/Contents/PlugIns/EnsoQuickLook.appex
qlmanage -r >/dev/null 2>&1 || true
install.linux: ## Linux: add enso to the app launcher, with its icon (after cargo build)
./scripts/install-linux.sh
clean: ## Remove build output
cargo clean