update build commands

This commit is contained in:
Rhiannon Morris 2024-12-03 03:23:07 +01:00
parent 1f433de159
commit 6681d2eefb

View file

@ -8,12 +8,11 @@ SCRIPTS = $(patsubst %.ts,%.js,$(wildcard script/*.ts))
MISC = $(shell find .well-known -type f)
ALL = $(CSS) $(PAGES) $(MEDIA) $(SCRIPTS) $(MISC)
BUILDDIR ?= _build
BUILDDIR ?= /srv/www/yummy
TMPDIR ?= _tmp
HOST ?= yummy.cricket
REMOTE_USER ?= www-data
IDFILE ?= ~/.ssh/xyz
REMOTE_DIR ?= yummy
all: build
@ -24,7 +23,7 @@ upload: build
@rsync --recursive --partial --progress --copy-links \
--compress --human-readable --hard-links --size-only \
--delete --delete-after \
--rsh='ssh -l $(REMOTE_USER) -i $(IDFILE)' \
--rsh='ssh -l $(REMOTE_USER)' \
$(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/
$(BUILDDIR)/%: %