The multi-line python3 -c heredoc in the Makefile caused "missing separator" errors since Make runs each recipe line in a separate shell. Moved to web/scripts/init_landing_seeds.py. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
TAILWIND := ./bin/tailwindcss
|
|
|
|
bin/tailwindcss:
|
|
@mkdir -p bin
|
|
curl -sLo bin/tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
|
|
chmod +x bin/tailwindcss
|
|
|
|
# Create seed files for SQLMesh staging models that require at least one landing file.
|
|
# Run once after a fresh clone (data/ is gitignored so seeds are not in git).
|
|
init-landing-seeds:
|
|
@python3 web/scripts/init_landing_seeds.py
|
|
|
|
css-build: bin/tailwindcss
|
|
$(TAILWIND) -i web/src/padelnomics/static/css/input.css -o web/src/padelnomics/static/css/output.css --minify
|
|
|
|
css-watch: bin/tailwindcss
|
|
$(TAILWIND) -i web/src/padelnomics/static/css/input.css -o web/src/padelnomics/static/css/output.css --watch
|
|
|
|
# -- Secrets (SOPS + age) --
|
|
# .env.*.sops files use dotenv format but sops can't infer from the extension,
|
|
# so we pass --input-type / --output-type explicitly.
|
|
|
|
SOPS_DOTENV := sops --input-type dotenv --output-type dotenv
|
|
|
|
secrets-decrypt-dev:
|
|
$(SOPS_DOTENV) --decrypt .env.dev.sops > .env
|
|
|
|
secrets-decrypt-prod:
|
|
$(SOPS_DOTENV) --decrypt .env.prod.sops > .env
|
|
|
|
secrets-edit-dev:
|
|
$(SOPS_DOTENV) .env.dev.sops
|
|
|
|
secrets-edit-prod:
|
|
$(SOPS_DOTENV) .env.prod.sops
|