intake/Makefile

23 lines
881 B
Makefile
Raw Normal View History

.PHONY: help serve test-data intake-sources demo
2025-01-24 00:58:55 +00:00
2025-02-24 20:03:14 +00:00
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
2025-01-24 00:58:55 +00:00
help: ## display this help
@awk 'BEGIN{FS = ":.*##"; printf "\033[1m\nUsage\n \033[1;92m make\033[0;36m <target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } ' $(MAKEFILE_LIST)
serve: ## Run "intake serve" with live reload
2025-02-24 20:03:14 +00:00
@air \
-build.cmd "go build -o ${ROOT_DIR}/tmp/intake" \
-build.bin ${ROOT_DIR}/tmp/intake \
-build.args_bin serve \
-build.include_ext "go,html,css"
test-data: ## Recreate test data in tmp/
2025-02-12 21:58:37 +00:00
@test/test_items.sh
intake-sources: ## Nix build intake-sources into tmp/
@nix build git+https://git.alogoulogoi.com/Jaculabilis/intake-sources.git#default --out-link ${ROOT_DIR}/tmp/intake-sources
2025-02-12 21:58:37 +00:00
demo: ## Run the demo vm
@nix run ".#nixosConfigurations.demo.config.system.build.nixos-shell"