Don't re-run test programs to recreate output every time 'check' is built
authorKen Raeburn <raeburn@mit.edu>
Wed, 27 May 2009 20:08:28 +0000 (20:08 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 27 May 2009 20:08:28 +0000 (20:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22393 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/aes/Makefile.in

index 4ed8ef7bffdd1a7b125d8a640ce69ea968590c9b..c817ad9df2fd8f5a058fe36dace4372ff1c1f761 100644 (file)
@@ -48,20 +48,22 @@ depend:: $(SRCS)
 aes-gen: aes-gen.o $(GEN_OBJS)
        $(CC_LINK) -o aes-gen aes-gen.o $(GEN_OBJS)
 
-run-aes-gen: aes-gen
+kresults.out: aes-gen
        ./aes-gen > kresults.out
 
-check:: run-aes-gen
+check:: kresults.out
 
 aes-test: aes-test.$(OBJEXT) $(CRYPTO_DEPLIB)
        $(CC_LINK) -o aes-test aes-test.$(OBJEXT) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
 
 check:: run-aes-test
-run-aes-test: aes-test
-       $(RUN_SETUP) $(VALGRIND) ./aes-test -k > vk.txt
+run-aes-test: vk.txt vt.txt
        cmp vk.txt $(srcdir)/expect-vk.txt
-       $(RUN_SETUP) $(VALGRIND) ./aes-test > vt.txt
        cmp vt.txt $(srcdir)/expect-vt.txt
+vk.txt: aes-test
+       $(RUN_SETUP) $(VALGRIND) ./aes-test -k > vk.txt
+vt.txt:
+       $(RUN_SETUP) $(VALGRIND) ./aes-test > vt.txt
 
 clean-unix:: clean-libobjs