Makefile.Example (594B)
1 # Makefile for verso_2 2 3 .POSIX: 4 5 all: build 6 7 build: 8 ./build.sh 9 10 clean: 11 rm -rf dist 12 13 serve: build 14 @echo "Starting local server on http://localhost:8000" 15 @cd dist && python3 -m http.server 8000 16 17 deploy: build 18 @echo "Deploy target not configured." 19 @echo "Edit this Makefile to add your deployment command." 20 @echo "Example: rsync -av --delete dist/ user@server:/var/www/" 21 22 watch: 23 @echo "Watching for changes..." 24 @while true; do \ 25 inotifywait -r -e modify,create,delete src templates sw.conf 2>/dev/null || \ 26 sleep 2; \ 27 make build; \ 28 done 29 30 .PHONY: all build clean serve deploy watch