Commit aaa26a5c authored by Patrick's avatar Patrick

prep for course contents

parent 649f4779
# Leave compiled files
*.pdf
Intermediate Microcontrollers
-----------------------------
# Recap
# 4–20mA Sensors
# Logging to SD card
# Real time clock
# Circular buffers
# increasing analog resolution
# PNG figure generation from SVG inputs
# =====================================
#
# Requires:
# Inkscape for svg to png generation
#
# Use:
# ln -s "path to original" makefile
#
# Run:
# make
# make all
# make part
# make clean
# make clean-part
# make clean-whole
IMG_PATH = images
SVG := $(wildcard $(IMG_PATH)/*.svg)
PNG_IMAGE := $(SVG:%.svg=%.png)
DOC := $(wildcard *-micro.md)
PDF := $(DOC:%.md=%.pdf)
.PHONY: all doc png images clean-doc clean-images clean
all: images doc
doc: $(PDF) images
$(PDF): $(DOC)
pandoc -o $(PDF) --from=markdown+link_attributes --latex-engine=xelatex -V mainfont='Linux Libertine O' $(DOC)
images: $(PNG_IMAGE) $(SVG)
%.png: %.svg
inkscape --export-png=$*.png --export-area-drawing $*.svg
clean: clean-doc clean-images
clean-doc:
rm -f $(PNG)
clean-images:
rm -f $(PNG_IMAGE)
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