Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 594 Bytes
SOURCES=$(wildcard *.md)
OBJS = $(patsubst, %.html, $(SOURCES))
CODE = $(wildcard code/*.nim)
EXE = $(patsubst %.nim, %.exe, $(CODE))
OUTPUT = $(patsubst %.exe, %.output, $(EXE))
all: README.adoc $(OUTPUT) $(OBJS)
cd css; make
code/%.output: code/%.exe
$< > $@
code/%.exe: code/%.nim
nim c --verbosity:0 --hints:off -o:$@ $<
%.html: Makefile template/html.tmpl
pandoc $< -o $@ -s -S --css=css/cookbook.css \
--template=template/html.tmpl \
--filter pandoc-include-code
sync: $(OBJS)
netlify deploy -s 6ccb057b-1341-4c92-b173-9b6a6ae6c5a0
rm -f $(OBJS)
You can’t perform that action at this time.