makefile: simplify the start target

This commit is contained in:
Tigor Hutasuhut 2024-05-02 14:42:22 +07:00
parent 45540a1207
commit 82d5ba23fc
2 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,7 @@ log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = ["make prepare"]
pre_cmd = ["make gen"]
rerun = false
rerun_delay = 500
send_interrupt = true

View file

@ -12,7 +12,9 @@ export REDMAGE_WEB_DEPENDENCIES_DAYJS_VERSION=$(shell echo "$${REDMAGE_WEB_DEPEN
export REDMAGE_WEB_DEPENDENCIES_THEMECHANGE_VERSION=$(shell echo "$${REDMAGE_WEB_DEPENDENCIES_THEMECHANGE_VERSION:-2.0.2}")
start: dev-dependencies
@air
@tailwindcss -i views/style.css -o public/style.css --watch &
@templ generate -watch &
air
dev-dependencies: build-dependencies
@if ! command -v air > /dev/null; then