Add Makefile

main
Chandler Swift 2023-07-03 17:12:02 -05:00
parent efe4b7cd92
commit 6afaa43911
Signed by: chandlerswift
GPG Key ID: A851D929D52FB93F
1 changed files with 17 additions and 0 deletions

17
Makefile 100644
View File

@ -0,0 +1,17 @@
.PHONY: deploy
deploy: build
rsync --archive --verbose --delete dist/ zirconium.home.chandlerswift.com:/var/www/maps.chandlerswift.com/
.PHONY: clean
clean:
rm -r dist
.PHONY: build
build: # TODO: add get_data as a prereq
npm run build
# in theory I could use non-phony targets here, but then I'd have to be updating
# this file much more often. Maybe as things stabilize!
.PHONY: get_data
get_data:
./data/get_all_data.sh