[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Static pattern rules do not support multiple targets
From: |
daniel |
Subject: |
Static pattern rules do not support multiple targets |
Date: |
Wed, 26 Mar 2014 13:00:41 +0100 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.3.10) |
Hi,
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) : %.c %.h : %.idl
touch $(<:%.idl=%.c) $(<:%.idl=%.h)
I tested this using make 4.0 on Linux. Please fix this.
Regards,
Daniel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Static pattern rules do not support multiple targets,
daniel <=