1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Add support for using a build directory

This commit is contained in:
Eelco Dolstra 2014-09-05 14:17:05 +02:00
parent afbdd55334
commit 075cfe3b97
5 changed files with 21 additions and 8 deletions

View file

@ -10,5 +10,5 @@ filename-to-dep = $(dir $1).$(notdir $1).dep
# 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.
# Ensure that the given string ends in a single slash.
add-trailing-slash = $(patsubst %/,%,$(1))/