forked from lix-project/lix
More GNU Make 3.81 compatibility
This commit is contained in:
parent
581a160c11
commit
79f699edca
|
@ -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
|
# Return the full path to a program by looking it up in $PATH, or the
|
||||||
# empty string if not found.
|
# 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)
|
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))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Add a rule for creating $(1) as a directory. This template may be
|
# Add a rule for creating $(1) as a directory. This template may be
|
||||||
# called multiple times for the same directory.
|
# called multiple times for the same directory.
|
||||||
define create-dir
|
define create-dir
|
||||||
_i := $(DESTDIR)$$(strip $(1))
|
_i := $$(call remove-trailing-slash, $(DESTDIR)$$(strip $(1)))
|
||||||
ifndef $$(_i)_SEEN
|
ifndef $$(_i)_SEEN
|
||||||
$$(_i)_SEEN = 1
|
$$(_i)_SEEN = 1
|
||||||
$$(_i):
|
$$(_i):
|
||||||
|
|
Loading…
Reference in a new issue