test/Makefile: add a rule for nasm itself

If NASM needs to be rebuilt, build it in the proper directory.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2016-02-18 13:06:04 -08:00
parent 44a609b203
commit 114ba75f7b

View file

@ -5,6 +5,9 @@ NASMOPT = -Ox -I../misc $(OPT)
PERL = perl
TESTS = $(wildcard *.asm)
$(NASM):
$(MAKE) -C ..
%.bin: %.asm $(NASM)
$(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<