litesata/test: Add missing dependency on scrambler in bist_tb
authorOlof Kindgren <olof.kindgren@gmail.com>
Thu, 25 Jun 2015 23:16:35 +0000 (01:16 +0200)
committerOlof Kindgren <olof.kindgren@gmail.com>
Thu, 25 Jun 2015 23:20:25 +0000 (01:20 +0200)
misoclib/mem/litesata/test/Makefile

index 48228e975d92496aac781984fd7667bf708e4835..ae0998feede14fc752494e50bf73dec4785641bd 100644 (file)
@@ -13,8 +13,7 @@ crc_tb:
        $(CC) $(CFLAGS) $(INC) -o crc crc.c
        $(CMD) crc_tb.py
 
-scrambler_tb:
-       $(CC) $(CFLAGS) $(INC) -o scrambler scrambler.c
+scrambler_tb: scrambler
        $(CMD) scrambler_tb.py
 
 cont_tb:
@@ -26,7 +25,7 @@ link_tb:
 command_tb:
        $(CMD) command_tb.py
 
-bist_tb:
+bist_tb: scrambler
        $(CMD) bist_tb.py
 
 striping_tb:
@@ -35,5 +34,8 @@ striping_tb:
 mirroring_tb:
        $(CMD) mirroring_tb.py
 
+scrambler: scrambler.c
+       $(CC) $(CFLAGS) $(INC) -o $@ $<
+
 clean:
-       rm crc scrambler *.vcd
+       rm -f crc scrambler *.vcd