tadd all to .PHONY - mars - superminimal static website framework (HTM) git clone git://parazyd.org/mars.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 99346d4006ca8207c115026ec312fb069aff439d (DIR) parent 3c639a245699fac69c99f9c16561152365d979f5 (HTM) Author: parazyd <parazyd@dyne.org> Date: Thu, 23 Jun 2016 15:09:25 +0200 add all to .PHONY Diffstat: M Makefile | 2 +- M mars.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) --- (DIR) diff --git a/Makefile b/Makefile t@@ -10,4 +10,4 @@ install: cp -f rsync-exclude ${DESTDIR}/rsync-exclude cp -f webtree ${DESTDIR}/webtree -.PHONY: push clean install +.PHONY: all push clean install (DIR) diff --git a/mars.sh b/mars.sh t@@ -39,14 +39,14 @@ process-page() { case $pageformat in php) php -f $page > $name.html \ - && print "[ ${fg[green]}OK${reset_color} ] $name.$pageformat -> $name.html" \ - || print "[${fg[red]}NOPE${reset_color}] $name.$pageformat -> $name.html" + && print "[ ${fg[green]}OK${reset_color} ] $name.$pageformat -> $name.html" \ + || print "[${fg[red]}NOPE${reset_color}] $name.$pageformat -> $name.html" ;; md) python -m markdown $page > $name.html \ - && print "[ ${fg[green]}OK${reset_color} ] $name.$pageformat -> $name.html" \ - || print "[${fg[red]}NOPE${reset_color}] $name.$pageformat -> $name.html" + && print "[ ${fg[green]}OK${reset_color} ] $name.$pageformat -> $name.html" \ + || print "[${fg[red]}NOPE${reset_color}] $name.$pageformat -> $name.html" ;; *) print "${fg[red]}(*) error: $pageformat page format is not supported${reset_color}";; t@@ -68,7 +68,7 @@ clean() { for page in $pages; do [[ -n "${exclude[(r)$page]}" ]] || { name=${page[(ws:.:)1]} - printf "(*) " && rm -v $name.html + printf "${fg[blue]}(*) ${reset_color}" && rm -v $name.html } done && popd done