summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-02-18 13:06:04 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-02-18 13:06:04 -0800
commit114ba75f7bb6dbd935b8b72537544d8e8ec49716 (patch)
tree2b741330ea65c7d695f066e89a0e87bb665f7adc
parent44a609b203734f7b76ab4fbb80e6d17cb0884151 (diff)
downloadnasm-114ba75f7bb6dbd935b8b72537544d8e8ec49716.tar.gz
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>
-rw-r--r--test/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 8b513590..a76044d4 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -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 $<