From 5ef82e5fda712d9e577d06c2128163d8089c7065 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 21 Nov 2012 14:44:07 +0400 Subject: Carefully set $(generated-files) to avoid extra spaces --- rules/ips-manifest.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rules') 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)) -- cgit v1.2.3