Update Makefile

Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
This commit is contained in:
Drew Ansbacher
2021-10-20 11:41:32 -06:00
committed by Aiden McClelland
parent f64ee113c5
commit 3c9aff57e4

View File

@@ -58,7 +58,7 @@ ui/www: $(UI_SRC) ui/node_modules patch-db/client patch-db/client/dist ui/config
ui/config.json:
jq '.mocks.enabled = false' ui/config-sample.json > ui/config.json
config-git-hash: ui/config.json
config-git-hash: ui/config.json .git
tmp=$(mktemp)
jq '.gitHash = "$(shell git rev-parse HEAD)"' ui/config.json > "$tmp" && mv "$tmp" ui/config.json