Add Makefile and switch README to make workflow
- Add Makefile with help/setup/pack/serve targets (PORT overridable) - README: document make setup / make serve / make pack instead of raw ./setup.sh and python http.server commands
This commit is contained in:
1 parent
dd27606d43
commit
38c7cc27c1
2 files changed
+35
-13
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# ============================================================
|
||||
# AT Transit mockup — Makefile
|
||||
# เรียกดูคำสั่งทั้งหมด: make help
|
||||
# ============================================================
|
||||
|
||||
PORT ?= 8090
|
||||
|
||||
.PHONY: help setup pack serve
|
||||
|
||||
help: ## แสดงรายการคำสั่งทั้งหมด
|
||||
@echo "AT Transit mockup — คำสั่งที่มี:"
|
||||
@echo " make setup แตก resource/images.zip → .image/ (ครั้งแรกหลัง clone)"
|
||||
@echo " make pack re-zip .image/ → resource/images.zip (หลังแก้รูป)"
|
||||
@echo " make serve รัน static server ที่ http://localhost:$(PORT)/ui/index.html"
|
||||
@echo " make serve PORT=8080 เปลี่ยน port ตามต้องการ"
|
||||
|
||||
setup: ## แตกไฟล์รูปภาพ (ครั้งแรกหลัง clone)
|
||||
./setup.sh
|
||||
|
||||
pack: ## re-zip ไฟล์รูปภาพ (หลังแก้รูป)
|
||||
./setup.sh pack
|
||||
|
||||
serve: ## รัน static server
|
||||
python3 -m http.server $(PORT)
|
||||
Reference in new issue
Block a user