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.
10 lines
240 B
Makefile
10 lines
240 B
Makefile
2 years ago
|
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
|