Created
November 24, 2019 01:48
-
-
Save hcarvalhoalves/27c3c43f21cd7c7df04cee69248f102e to your computer and use it in GitHub Desktop.
Pandoc S3 Site Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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