The gzip utility fetches default options from the GZIP environment variable.
Don't use this name in the tvh build.
CSS_PY = PYTHONIOENCODING=utf-8 $(PYTHON) support/css.py
RUN_JS = PYTHONIOENCODING=utf-8 $(PYTHON) vendor/rjsmin-1.0.10/rjsmin.py
RUN_CSS = PYTHONIOENCODING=utf-8 $(PYTHON) vendor/rcssmin-1.0.5/rcssmin.py
-GZIP += -n
+GZIPCMD += -n
ifeq ($(WEBUI),std)
DEBUG =
$(VV)cat $^ > $@.tmp
$(VV)$(RUN_JS) < $@.tmp > $@.tmp2
@stat --printf="%-35n %7s\n" $@.tmp $@.tmp2
- $(VV)$(GZIP) -c $@.tmp2 > $@.tmp
+ $(VV)$(GZIPCMD) -c $@.tmp2 > $@.tmp
@rm $@.tmp2
@mv $@.tmp $@
@stat --printf="%-35n %7s\n" $@
$(VV)$(CSS_PY) --in="$^" > $@.tmp
$(VV)$(RUN_CSS) < $@.tmp > $@.tmp2
@stat --printf="%-35n %7s\n" $@.tmp $@.tmp2
- $(VV)$(GZIP) -c $@.tmp2 > $@.tmp
+ $(VV)$(GZIPCMD) -c $@.tmp2 > $@.tmp
@rm $@.tmp2
@mv $@.tmp $@
@stat --printf="%-35n %7s\n" $@
*dir|prefix)
eval "$opt=$val"
;;
- cc|cflags|ldflags|arch|cpu|platform|python|gzip|bzip2)
+ gzip)
+ eval "$(toupper ${opt}CMD)=\"$val\""
+ ;;
+ cc|cflags|ldflags|arch|cpu|platform|python|bzip2)
eval "$(toupper $opt)=\"$val\""
;;
enable-*)
#
# Binaries
#
-check_bin ${GZIP} || die 'WARN: no gzip binary found'
+check_bin ${GZIPCMD} || die 'WARN: no gzip binary found'
check_bin ${BZIP2} || echo 'WARN: no bzip2 binary found'
#
[ -z "$ARCH" ] && ARCH=$(uname -m)
[ -z "$OSENV" ] && OSENV=posix
[ -z "$PYTHON" ] && PYTHON=python
-[ -z "$GZIP" ] && GZIP=gzip
+[ -z "$GZIPCMD" ] && GZIPCMD=gzip
[ -z "$BZIP2" ] && BZIP2=bzip2
# Paths
echo "Binaries:"
printf "$fmt" "Using PYTHON:" "${PYTHON}"
- printf "$fmt" "Using GZIP:" "${GZIP}"
+ printf "$fmt" "Using GZIP:" "${GZIPCMD}"
printf "$fmt" "Using BZIP2:" "${BZIP2}"
echo ""
CC = ${CC}
endif
PYTHON ?= ${PYTHON}
-GZIP ?= ${GZIP}
+GZIPCMD ?= ${GZIPCMD}
BZIP2 ?= ${BZIP2}
CFLAGS += ${CFLAGS}
LDFLAGS += ${LDFLAGS}