summaryrefslogtreecommitdiff
path: root/Makefile
blob: d074a3df89346b5ad2c3550c5c0e8d3b311f3389 (plain)
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
SKIP_SERVICES = []

all:
	nix-build -A entrypoint \
		--arg baseConfig '(import ./config.nix)' \
		--arg baseSkipServices '${SKIP_SERVICES}'

run: all
	./result

all.prod:
	nix-build -A entrypoint \
		--arg baseConfig '(import ./prod.config.nix)' \
		--arg baseSkipServices '${SKIP_SERVICES}'

run.prod: all.prod
	./result

install.prod:
	nix-build -A install --arg baseConfig '(import ./prod.config.nix)'
	./result

srv.shell:
	nix-shell -A srv.shell --command 'cd srv; return'

srv.shell.prod:
	nix-shell -A srv.shell --arg baseConfig '(import ./prod.config.nix)' --command 'cd srv; return'

static.shell:
	nix-shell -A static.shell --command 'cd static; return'

static.serve:
	nix-shell -A static.shell --run 'cd static; static-serve'

static.depShell:
	nix-shell -A static.depShell --command 'cd static; return'

static.lock:
	nix-shell -A static.depShell  --run 'bundler lock; bundix; rm -rf .bundle vendor'