# in some places.
am__empty :=
-# GNU make 3.80 lacks $(lastword).
-## FIXME: the best thing to do here is ts
-am__lastword = $(word $(words $(1)),$(1))
-
am__strip_firstword = $(wordlist 2,$(words $(1)),$(1))
am__strip_lastword = $(wordlist 2,$(words $(1)),dummy $(1))
$(call am__uniq, \
$(call am__strip_lastword, $(1))) \
## And append the last element, unless it was already present.
- $(if $(filter $(call am__lastword, $(1)), \
+ $(if $(filter $(lastword $(1)), \
$(call am__strip_lastword, $(1))), \
$(am__empty), \
- $(call am__lastword,$(1)))))
+ $(lastword $(1)))))
## Simple memoization for recursive make variables. It is useful for
## situations where immediate variables can't be used (due, say, to