URL: <https://savannah.gnu.org/bugs/?60165>
Summary: Multiple pattern rules with single rule Project: make Submitted by: None Submitted on: Wed 03 Mar 2021 09:24:53 PM UTC Severity: 3 - Normal Item Group: Enhancement Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: None Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: To shorten the code, I would like to create multiple pattern rules with a single rule. E.g. the code below is not working as desired. $(BUILD)/$(FRONTEND)/%.html \ $(BUILD)/$(FRONTEND)/%.js \ $(BUILD)/$(FRONTEND)/%.css \ $(BUILD)/$(FRONTEND)/%.svg \ $(BUILD)/$(FRONTEND)/%.ico: @echo -n "$(FRONTEND) - building $@" @$(MD) $(BUILD)/$(FRONTEND) @cp $(FRONTEND)/$(@F) $@ @echo " ...done" .PHONY: login: $(BUILD)/$(FRONTEND)/login.html \ $(BUILD)/$(FRONTEND)/login.js $(BUILD)/$(FRONTEND)/options.js $(BUILD)/$(FRONTEND)/node.js \ $(BUILD)/$(FRONTEND)/login.css $(BUILD)/$(FRONTEND)/common.css \ $(BUILD)/$(FRONTEND)/logo.svg \ $(BUILD)/$(FRONTEND)/favicon.ico @echo -n "$(FRONTEND) - building login" @echo " ...done" # result # q@odysseus:~/ff$ make login # frontend - building build/frontend/login.html ...done # frontend - building build/frontend/options.js ...done # frontend - building build/frontend/node.js ...done # frontend - building build/frontend/common.css ...done # frontend - building build/frontend/logo.svg ...done # frontend - building build/frontend/favicon.ico ...done # frontend - building login ...done # q@odysseus:~/ff$ make login # frontend - building build/frontend/login.js ...done # frontend - building login ...done # q@odysseus:~/ff$ make login # frontend - building build/frontend/login.css ...done # frontend - building login ...done _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60165> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/