You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
ifeq ($(shell uname -s),Linux)
|
|
DU_ARGUMENTS = --block-size=1024 --apparent-size
|
|
else ifeq ($(shell uname -s),Darwin)
|
|
DU_ARGUMENTS = -k -A
|
|
endif
|
|
|
|
define disk_usage_KiB
|
|
@printf '%s KiB\n' `du $(DU_ARGUMENTS) $(1) | cut -f1`
|
|
endef
|