summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-08-30 21:38:09 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-08-30 21:38:09 -0600
commit6bebc3fae73b5f5f68e5de9e083635cfab9037b1 (patch)
tree634bf166a2295ba3d4fc12bf71f22eeb48fe3b35 /Makefile
parent9343d2ea697f13e52e9199fce62a959f1954f580 (diff)
have circus run static serve, and optionally able to skip services via Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef9130a..d074a3d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,20 @@
+SKIP_SERVICES = []
+
all:
- nix-build -A entrypoint --arg baseConfig '(import ./config.nix) // { staticProxyURL = ""; }'
+ 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)'
+ 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)'