diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2012-11-21 14:44:07 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2012-11-21 14:44:07 +0400 |
commit | 5ef82e5fda712d9e577d06c2128163d8089c7065 (patch) | |
tree | e0fada344c080ef6ee7cc30331b94c3762103b3a /rules | |
parent | 73eda209f52224c6a21731c718474b438439f29c (diff) | |
download | cibs-5ef82e5fda712d9e577d06c2128163d8089c7065.tar.gz |
Carefully set $(generated-files) to avoid extra spaces
Diffstat (limited to 'rules')
-rw-r--r-- | rules/ips-manifest.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rules/ips-manifest.mk b/rules/ips-manifest.mk index 4184cb5..087cf85 100644 --- a/rules/ips-manifest.mk +++ b/rules/ips-manifest.mk @@ -73,7 +73,9 @@ $(transdir)/arch \ # Manifest generators: manifests-x := $(wildcard *.p5m.x) +ifneq (,$(manifests-x)) manifests-generated += $(manifests-x:%.x=%) +endif %.p5m: %.p5m.x echo '# This file was generated by $<' > $@ ./$< >> $@ @@ -81,14 +83,17 @@ manifests-generated += $(manifests-x:%.x=%) manifests-m4 := $(wildcard *.p5m.m4) ifneq (,$(manifests-m4)) build-depends += gnu-m4 -endif manifests-generated += $(manifests-m4:%.m4=%) +endif %.p5m: %.p5m.m4 echo '# This file was generated from $<' > $@ gm4 $< >> $@ +ifneq (,$(manifests-generated)) manifests += $(manifests-generated) generated-files += $(manifests-generated) +endif + # Supplied canonical manifests: manifests := $(filter-out $(generated-manifests),$(wildcard *.p5m)) |