I wish to compile partial targets which is $(APPS) but excluding targets in $(OFF) in the makefile:
APPS = a b c d e f g
OFF = d e
all: $(APPS)
partial: $(APPS) - $(OFF)
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d probably just take a slightly different approach:
But if this is too simplistic for your needs, there is a
filter-outfunction that can provide the exact operation you want:I think re-writing your example in this format would be: