summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Kylie McClain <somasis@exherbo.org> 2016-05-09 15:34:55 -0400
committerAvatar Kylie McClain <somasis@exherbo.org> 2016-05-09 16:35:25 -0400
commit87b4c808b34b45bd6f59b3991b28b695b3f19194 (patch)
tree6ca2f832794054801a4ef148d1c4076e23990677
parent8c740398c6d556027093645c52c737b518773953 (diff)
downloadwww-87b4c808b34b45bd6f59b3991b28b695b3f19194.tar.gz
www-87b4c808b34b45bd6f59b3991b28b695b3f19194.tar.xz
Makefile: remove pointless minification stuff
gain is small and it can only work on css files, anyway...
-rw-r--r--Makefile33
1 files changed, 0 insertions, 33 deletions
diff --git a/Makefile b/Makefile
index b2c7128..21fb539 100644
--- a/Makefile
+++ b/Makefile
@@ -47,41 +47,8 @@ deploy: all
--exclude '*.tmp' \
--exclude docs/
@if [[ -d "$(DOCS)" ]];then make --no-print-directory -C "$(DOCS)" IMAGE="$(IMAGE)/docs" deploy;fi
- @pwd=$(PWD);pushd "$(IMAGE)" >/dev/null 2>&1;for file in **/*.css;do \
- make --no-print-directory -C "$$pwd" FILE="$(IMAGE)/$$file" minify; done; popd >/dev/null 2>&1
@echo "Run \`python2 -m SimpleHTTPServer 8080\` in \"$(IMAGE)\" to view the webpages."
-ifdef NO_MINIFY
-
-minify:
- @true
-
-else
-
-minify:
- @if [[ -z "$(FILE)" ]];then echo "FILE=<file to minify>" >&2; exit 1;fi
- @echo "Minifying $(FILE) ..."
- @sed \
- -e "s|/\*\(\\\\\)\?\*/|/~\1~/|g" \
- -e "s|/\*[^*]*\*\+\([^/][^*]*\*\+\)*/||g" \
- -e "s|\([^:/]\)//.*$$|\1|" -e "s|^//.*$$||" \
- "$(FILE)" >"$(FILE)".tmp
- @cat "$(FILE)".tmp > "$(FILE)"
- @tr '\n' ' ' <"$(FILE)" > "$(FILE)".tmp
- @sed \
- -e "s|/\*[^*]*\*\+\([^/][^*]*\*\+\)*/||g" \
- -e "s|/\~\(\\\\\)\?\~/|/*\1*/|g" \
- -e "s|\s\+| |g" \
- -e "s| \([{;:,]\)|\1|g" \
- -e "s|\([{;:,]\) |\1|g" \
- -e "s/^ *//;s/ *$$//" \
- -i "$(FILE).tmp"
- @cat "$(FILE)".tmp > "$(FILE)"
- @rm "$(FILE)".tmp
-
-
-endif
-
ifdef NO_CONTRIBUTORS
contributors.part.tmpl: