summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-12-29 03:23:39 +0100
committerache <ache@ache.one>2018-12-29 03:23:39 +0100
commit773a593551302a6d23cf151cafcb89c9d750ce2d (patch)
tree9714cd053866f94dda56280a16d72e7ddc63e0d7
parentNo contenu id (diff)
Improove mrclean !
-rw-r--r--makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/makefile b/makefile
index f8906dc..1a30a16 100644
--- a/makefile
+++ b/makefile
@@ -87,11 +87,13 @@ tmp/headers.htm: headers.m4
# À partir du script `prepare` de npm.
# En utilisant babel puis uglify-js
$(SCRIPT_JS): src/js/*
+ mkdir -p s/js
npm run-script prepare
# > Création du fichier principale CSS
# À partir de sassc, un compilateur SCSS écrit en C.
$(SHEET_CSS): src/css/*
+ mkdir -p s/css
sassc -t compressed src/css/design.scss > s/css/style.css
@@ -105,10 +107,9 @@ clean:
-rm -f articles.htm
-rm -f $(ALL_ARTICLES:.md=_intro.htm)
-rm -f $(ALL_ARTICLES:.md=.htm)
- -rm -f articles/*.htm
- -rm -f articles/*_header.html
-rm -f contact/*.htm
-rm -f contact/*_header.html
+ -rm -fr articles/tmp
-rm -rf tmp/
.PHONY: mrclean
@@ -116,7 +117,7 @@ mrclean: clean
-rm -f index.html
-rm -f $(ALL_ARTICLES_OUT)
-rm -f $(ALL_ARTICLES_INTRO_OUT)
- -rm -f $(SHEET_CSS)
- -rm -f $(SCRIPT_JS)
-rm -f contact/index.html
+ -rm -fr s/css
+ -rm -fr s/js