1
0
linux/debian/rules.defs
Konstantin Demin eb2bdc81cb rewrite scripts
try to provide better syntax and avoid using bash
2024-10-29 05:12:06 +03:00

22 lines
605 B
Plaintext

ifeq (,$(filter --no-print-directory,$(MAKEFLAGS)))
MAKEFLAGS +=--no-print-directory
endif
define flush_vars=
$(foreach _____v,$(1),$(eval unexport $(_____v)))
$(foreach _____v,$(1),$(eval override undefine $(_____v)))
endef
$(call flush_vars, LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE )
$(call flush_vars, LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS )
$(call flush_vars, LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION )
$(call flush_vars, GREP_OPTIONS POSIXLY_CORRECT )
export LC_ALL :=C.UTF-8
export LANG :=C.UTF-8
SHELL :=sh -e
BUILD_DIR = debian/build
STAMPS_DIR = debian/stamps