diff options
-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)) |