--- title: make --- Remove words from a list ------------------------ ``` makefile FILTER = index.html test.html 404.html PAGES = $(sort $(filter-out $(FILTER), $(wildcard *.html))) ``` Get 2nd dependency ------------------ ``` makefile .PHONY: all first second third all: first second third echo $(word 2,$^) ``` See also -------- * https://www.gnu.org/software/make/manual/html_node/Text-Functions.html * https://swcarpentry.github.io/make-novice/reference.html