Created
August 20, 2024 17:56
-
-
Save h0tw1r3/15f9ee948e60d646afa44ab247c6afd0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifeq (${MAKELEVEL},0) | |
export SCRATCH := $(shell mktemp -d ./.tmp_XXXXXXXX) | |
$(info Launching clean up task for ${SCRATCH}) | |
$(shell bash -c "set -m ; trap 'rm -rvf ${SCRATCH};' EXIT; lsof -p $$PPID +r 1;" </dev/null >/dev/null 2>/dev/null & disown) | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment