aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2013-01-18 15:44:02 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2013-01-18 15:45:17 +0400
commit902901f8a0d4b4a83c436bc350f936d129fcda7c (patch)
tree06b906e390f830f299b4c8c64acb5ddd6a7cb221
parentf1ca0524a6203fa0318ec3dcf380be1310f96fcb (diff)
downloadcibs-902901f8a0d4b4a83c436bc350f936d129fcda7c.tar.gz
Allow arbitrary env vars for manifest generators
-rw-r--r--rules/ips-manifest.mk4
1 files 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))