commit 99346d4006ca8207c115026ec312fb069aff439d parent 3c639a245699fac69c99f9c16561152365d979f5 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(-)
diff --git a/Makefile b/Makefile @@ -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 diff --git a/mars.sh b/mars.sh @@ -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}";; @@ -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