Skip to content

Instantly share code, notes, and snippets.

@hcarvalhoalves
Created November 24, 2019 01:48
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hcarvalhoalves/27c3c43f21cd7c7df04cee69248f102e to your computer and use it in GitHub Desktop.
Save hcarvalhoalves/27c3c43f21cd7c7df04cee69248f102e to your computer and use it in GitHub Desktop.
Pandoc S3 Site Makefile
MARKDOWN = pandoc --standalone --from markdown+smart --to html --css theme.css
all: $(patsubst %.md,%.html,$(wildcard *.md)) Makefile
clean:
rm -fv $(patsubst %.md,%.html,$(wildcard *.md))
publish:
aws-3.7 s3 sync . s3:/<BUCKET> --exclude "*" --include "*.html" --include
%.html: %.md
$(MARKDOWN) $< --output $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment