[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60165] Multiple pattern rules with single rule
From: |
anonymous |
Subject: |
[bug #60165] Multiple pattern rules with single rule |
Date: |
Wed, 3 Mar 2021 16:24:54 -0500 (EST) |
User-agent: |
Lynx/2.8.4dev.11 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #60165] Multiple pattern rules with single rule,
anonymous <=