From 902901f8a0d4b4a83c436bc350f936d129fcda7c Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 18 Jan 2013 15:44:02 +0400 Subject: Allow arbitrary env vars for manifest generators --- rules/ips-manifest.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/ips-manifest.mk b/rules/ips-manifest.mk index 1714a33..d2b2907 100644 --- a/rules/ips-manifest.mk +++ b/rules/ips-manifest.mk @@ -76,8 +76,8 @@ ifneq (,$(manifests-x)) manifests-generated += $(manifests-x:%.x=%) endif %.p5m: %.p5m.x - echo '# This file was generated by $<' > $@ - ./$< >> $@ + (echo '# This file was generated by "$<"' > "$@" && \ + env $(env) "./$<" >> "$@") || rm "$@" manifests-m4 := $(wildcard *.p5m.m4) ifneq (,$(manifests-m4)) -- cgit v1.2.3