summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cmds2
-rw-r--r--Template2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cmds b/Cmds
index e841d26..e590b38 100644
--- a/Cmds
+++ b/Cmds
@@ -52,7 +52,7 @@ MKDIR = echo -e " MKDIR\t$(1)" && mkdir -p $(1)
RM = echo -e " RM\t$(1)" && rm -rf $(1)
RMDIR = echo -e " RM\t$(1)" && rmdir --ignore-fail-on-non-empty $(1) 2> /dev/null || true
-GZIP = gzip -9 -c
+GZIP_ENV = -9 -c
# Git related
GIT_LAST_TAG = git describe --abbrev=0 v$(VERSION_SHORT)^
diff --git a/Template b/Template
index 0847cdb..056f594 100644
--- a/Template
+++ b/Template
@@ -9,7 +9,7 @@ define TOOL_templ
$(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz)
$(1)_do_install:
$(Q)$$(call INSTX,$(1)/$(1),$$(DESTDIR)$$(SBINDIR))
- $(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz
+ $(Q)eval GZIP= gzip $(GZIP_ENV) $(1).8 > $(1)/$(1).8.gz
$(Q)$$(call INST,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR))
$(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));)
$(1)_install: $(1)_do_install $(1)_post_install