SRC=src BUILD=build RMD_IN = $(wildcard $(SRC)/*.Rmd) RMD_OUT := $(patsubst $(SRC)/%.Rmd,$(BUILD)/%.html,$(RMD_IN)) all: $(RMD_OUT) @mkdir -p build @echo "Building index" @Rscript build_Rmd.R $(SRC)/index.Rmd $(BUILD)/index.html > /dev/null 2>&1 @echo "Building RSS" @python3 build_rss.py @echo "Done" deploy: @rsync -r --progress --delete --update build/ \ lemur:/var/www/kenkellner.com/blog/ $(BUILD)/%.html: $(SRC)/%.Rmd $(SRC)/_navbar.yml $(SRC)/style.css Rscript build_Rmd.R $< $@ clean: rm -f build/*