# definition of $(am__newline) below for a significant example.
am.chars.empty :=
-am__strip_firstword = $(wordlist 2,$(words $(1)),$(1))
+am.util.strip-first-word = $(wordlist 2,$(words $(1)),$(1))
am__strip_lastword = $(wordlist 2,$(words $(1)),dummy $(1))
## Remove repeated elements from the given list (without reordering),
$(strip $1), \
$(patsubst %$(am__private_suffix),%, \
$(call am__strip_suffixes, \
- $(call am__strip_firstword,$1), \
+ $(call am.util.strip-first-word,$1), \
$(patsubst %$(firstword $1),%$(am__private_suffix),$2))), \
$2))
@echo Please select an explicit test; exit 1
.PHONY: default
-.PHONY: test-strip-firstword
-test-strip-firstword:
- test '$(call am__strip_firstword,)' = ''
- test '$(call am__strip_firstword,1)' = ''
- test '$(call am__strip_firstword,1 1)' = '1'
- test '$(call am__strip_firstword,1 2)' = '2'
- test '$(call am__strip_firstword,1 2 3 4 5 6 7 8)' = '2 3 4 5 6 7 8'
- test '$(call am__strip_firstword, 1 2 )' = '2'
+.PHONY: test-strip-first-word
+test-strip-first-word:
+ test '$(call am.util.strip-first-word,)' = ''
+ test '$(call am.util.strip-first-word,1)' = ''
+ test '$(call am.util.strip-first-word,1 1)' = '1'
+ test '$(call am.util.strip-first-word,1 2)' = '2'
+ test '$(call am.util.strip-first-word,1 2 3 4 5 6 7 8)' = '2 3 4 5 6 7 8'
+ test '$(call am.util.strip-first-word, 1 2 )' = '2'
.PHONY: test-strip-lastword
test-strip-lastword:
test -f n3
END
-command_ok_ am__strip_firstword $MAKE test-strip-firstword
+command_ok_ am.util.strip-first-word $MAKE test-strip-first-word
command_ok_ am__strip_lastword $MAKE test-strip-lastword
command_ok_ am__uniq $MAKE test-uniq
command_ok_ am__test_strip_suffixes $MAKE test-strip-suffixes