summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 03c14f4..b468c82 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,26 @@
# > Fonctions de nettoyage
-# .PHONY sert à indiquer une commande (sinon un fichier clean poserait problème)
+# .PHONY sert à indiquer une commande (sinon un fichier nommé "clean" poserait problème)
# Un tiret devant une commande indique d'ignorer une éventuelle erreur.
+.PHONY: clean build js css svg static svg
+build: svg css js static
-.PHONY: clean build
-
-build:
+svg:
npm run build-svg
+
+css:
npm run build-css
+ cp ./node_modules/katex/dist/katex.css s/css/
+ cp -r ./node_modules/katex/dist/fonts s/css/
+
+js:
npm run build-js
+ wget "https://cdn.plot.ly/plotly-2.24.3.min.js" -O s/js/plotly.min.js
+
+static:
npm run build-static
clean:
@echo "Clean"
- -rm -fr articles/*.html tag/ s/ index.html rss.xml
+ -rm -fr articles/*.html tag/ s/ index.html rss.xml en/ fr/