URL: <http://savannah.gnu.org/bugs/?42125>
Summary: Static pattern rules do not support multiple targets Project: make Submitted by: None Submitted on: Tue 15 Apr 2014 04:02:29 PM UTC Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.0 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: Makefile allows to create pattern rule with multiple targets, like below. This is very handy for rules which generates multiple files at once. %.h %.c : %.idl touch $(<:%.idl=%.c) $(<:%.idl=%.h) I tried to build static pattern rule in similar way, but it do not work - make reports error "multiple target patterns": $(IDLS:%.idl=%.c) $(IDLS:%.idl=%.h) : %.h %.c : %.idl touch $(<:%.idl=%.c) $(<:%.idl=%.h) I tested this using make 4.0 on Linux. Please fix this. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?42125> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make