1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

Make it work on GNU Make > 3.81 again

This commit is contained in:
Eelco Dolstra 2014-02-18 13:35:35 +01:00
parent 79f699edca
commit 7bef965d6f
4 changed files with 8 additions and 8 deletions

View file

@ -11,4 +11,4 @@ filename-to-dep = $(dir $1).$(notdir $1).dep
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))
add-trailing-slash = $(patsubst %/,%,$(1))/