forked from ghostty-org/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 818 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 818 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
SHELL := /usr/bin/env bash
.PHONY: dev
dev: node_modules/.installed .env.local
source .env.local && npm run dev
node_modules/.installed: package.json
npm i && touch node_modules/.installed
.env.local:
cp .env.sample .env.local
.PHONY: sync-webdata
sync-webdata:
test -d "$(GHOSTTY_BUILD_DIR)" # if this fails, set GHOSTTY_BUILD_DIR to the ghostty output directory
cp $(GHOSTTY_BUILD_DIR)/share/ghostty/webdata/config.mdx ./docs/config/reference.mdx
cp $(GHOSTTY_BUILD_DIR)/share/ghostty/webdata/actions.mdx ./docs/config/keybind/reference.mdx
# ====================================
# ======= Docker Configuration =======
# ====================================
.PHONY: docker
docker: .env.local docker-build
source .env.local && docker compose up
.PHONY: docker-build
docker-build:
docker compose build