I need to define many rules like RData_rule, png_rule, csv_rule, ....
Is there a way to define a macro that can define these rules (with the
parameter like RData and png)?
define RData_rule
TARGET:=$(patsubst %.R,%.RData,$1)
all: $$(TARGET)
$$(TARGET): $1 $2 $3 $4 $5 $6 $7 $8
Rscript $$<
endef
define png_rule
TARGET:=$(patsubst %.R,%.png,$1)
all: $$(TARGET)
$$(TARGET): $1 $2 $3 $4 $5 $6 $7 $8
Rscript $$<
endef
--
Regards,
Peng
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make