]> git.donarmstrong.com Git - bugscan.git/commitdiff
use secondexpansion to properly expand the idx stubs
authorDon Armstrong <don@donarmstrong.com>
Wed, 19 Mar 2014 21:44:09 +0000 (14:44 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 19 Mar 2014 21:44:09 +0000 (14:44 -0700)
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)
+