Skip to content
Snippets Groups Projects
Commit f2d738b0 authored by Hym Samuel's avatar Hym Samuel
Browse files

Ajoute un Makefile pour générer l’index et extraire les titres

parent b64a1593
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
MOULINETTE := ../stages/moulinette/moulinette
PROMOTIONTITRE := ../stages/moulinette/promotion-titre
# Les .md dans l’ordre où ils ont été ajoutés
SRC := $(shell for i in *-*.md; do git log --pretty=format:"%ct $$i%n" "$$i" | tail -n1; done | sort | cut -d ' ' -f2-)
all: web web/index.mdwn $(addprefix web/, $(addsuffix wn, $(SRC)))
web:
mkdir -p web
web/index.mdwn: $(SRC)
$(MOULINETTE) $^ | pandoc -f json -t markdown -s -o $@
web/%.mdwn: %.md
$(PROMOTIONTITRE) $< | pandoc -f json -t markdown -s -o $@
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment