]> git.donarmstrong.com Git - bugscan.git/blobdiff - t/test_spool/versions/indices/Makefile
use secondexpansion to properly expand the idx stubs
[bugscan.git] / t / test_spool / versions / indices / Makefile
index ade27506ea0ca94f672d9f284bb040d4c3595783..0a4c43564e3d4ca3c94cfe333ea0224eb423a555 100644 (file)
@@ -6,6 +6,9 @@ PERL?=perl
 
 all: $(VERSION_INDICES)
 
-$(VERSION_INDICES): %.idx: %.idx_stubs make_index_from_stubs.pl $(wildcard %.idx_stubs/*.stub)
+$(VERSION_INDICES): %.idx: %.idx_stubs
        $(PERL) $(wordlist 2,2,$^) $@ $(wordlist 3,$(words $^),$^)
 
+.SECONDEXPANSION:
+$(VERSION_INDICES): %.idx: %.idx_stubs make_index_from_stubs.pl $$(wildcard $$*.idx_stubs/*.stub)
+