add build

This commit is contained in:
2026-10-01 02:16:18 +07:00
parent c48b3bc6f8
commit 661fa9e852
2 changed files with 35 additions and 1 deletions
+19 -1
View File
@@ -1,4 +1,22 @@
.PHONY: check
.PHONY: check build publish
build:
$(MAKE) -C evening_detective_server build-linux
npm --prefix evening_detective_frontend run build
publish:
@test -n "$(MSG)" || (echo 'Usage: make publish MSG="commit message"' >&2; exit 1)
@$(MAKE) build
@set -e; \
for repo in . evening_detective_server evening_detective_frontend; do \
git -C "$$repo" add -A; \
if git -C "$$repo" diff --cached --quiet; then \
echo "$$repo: no changes"; \
continue; \
fi; \
git -C "$$repo" commit -m "$(MSG)"; \
git -C "$$repo" push; \
done
check:
$(MAKE) -C evening_detective_server test