Commit 6fa7ae03 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

copy from pad

parents
Pipeline #401 canceled with stages
# find all .md files in the directory
# mdsrc=$(shell ls *.md)
mdsrc=$(shell find . -iname "*.md")
# mdsrc=$(wildcard *.md */*.md **/*.md )
# map *.mp => *.html for mdsrc
html_from_md=$(mdsrc:%.md=%.html)
all: $(html_from_md)
fixnames:
rename "s/ /_/g" *
today:
touch `date +"%Y-%m-%d.md"`
now_folder:
mkdir `date +"%Y-%m-%d-%H%M%S"`
# Implicit rule to know how to make .html from .md
%.docx: %.md
pandoc --from markdown \
--to docx \
--standalone \
--smart \
--section-divs \
--css styles.css $< -o $@
%.html: %.md
pandoc --from markdown \
--to html \
--standalone \
--smart \
--section-divs \
--css styles.css $< -o $@
# special rule for debugging variables
print-%:
@echo '$*=$($*)'
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment