Skip to content

Instantly share code, notes, and snippets.

@nutjob4life
Created March 22, 2022 21:15
Show Gist options
  • Save nutjob4life/da4179e141739942478173be991842d5 to your computer and use it in GitHub Desktop.
Save nutjob4life/da4179e141739942478173be991842d5 to your computer and use it in GitHub Desktop.
"pandoc" demonstration
SOURCE = Uploading-Data-to-LabCAS.md
TARGETS = sftp.docx sftp.html sftp.pdf sftp.textile
all: $(TARGETS)
sftp.docx: $(SOURCE)
pandoc --from=markdown --to=docx --output=sftp.docx $(SOURCE)
sftp.html: $(SOURCE)
pandoc --standalone --from=markdown --to=html --output=sftp.html $(SOURCE)
sftp.pdf: $(SOURCE)
pandoc --pdf-engine=wkhtmltopdf --standalone --from=markdown --to=pdf --output=sftp.pdf $(SOURCE)
sftp.textile: $(SOURCE)
pandoc --from=markdown --to=html --output=sftp.textile $(SOURCE)
clean:
rm -f $(TARGETS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment