mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
More GNU Make 3.81 compatibility
This commit is contained in:
parent
581a160c11
commit
79f699edca
2 changed files with 4 additions and 1 deletions
|
@ -9,3 +9,6 @@ filename-to-dep = $(dir $1).$(notdir $1).dep
|
|||
# Return the full path to a program by looking it up in $PATH, or the
|
||||
# empty string if not found.
|
||||
find-program = $(shell for i in $$(IFS=: ; echo $$PATH); do p=$$i/$(strip $1); if [ -e $$p ]; then echo $$p; break; fi; done)
|
||||
|
||||
# Remove trailing slash.
|
||||
remove-trailing-slash = $(patsubst %/,%,$(1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue