diff --git a/Makefile b/Makefile index d791ff5..34a2ade 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,19 @@ IMAGES = mlem.gif icon.png BUILDDIR ?= _build TMPDIR ?= _tmp +HOST ?= yummy.cricket +REMOTE_USER ?= www-data +IDFILE ?= ~/.ssh/xyz +REMOTE_DIR ?= yummy all: build build: $(patsubst %,$(BUILDDIR)/%,$(FONTS) $(CSS) $(PAGES) $(IMAGES)) +upload: build + @rsync -rPLzh --delete -e 'ssh -l $(REMOTE_USER) -i $(IDFILE)' \ + $(BUILDDIR)/ $(HOST):$(REMOTE_DIR)/ + $(BUILDDIR)/%: % @echo $* @mkdir -p $(dir $@) @@ -26,4 +34,4 @@ $(BUILDDIR)/%.gif: %_bg.gif clean: $(RM) -r $(TMPDIR) $(BUILDDIR) -.PHONY: clean all build +.PHONY: clean all build upload