Remove item from a Makefile variable? January 17, 2023 by Tarik You could use the filter-out text function if you’re using GNU Make. OTHERVAR := $(filter-out SomethingElse,$(VAR))