From 04580c6ff02d23ca319b680c43c504c62fcfc651 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 5 Oct 2018 23:22:27 +0800 Subject: [PATCH] makefile: Use $(MAKE) (#71) This software requires GNU make to build, which is installed as "gmake" on *BSD. Therefore, use $(MAKE) to make sure that the same GNU make is invoked to build the sub-project. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 8497a46..6095f1d 100644 --- a/makefile +++ b/makefile @@ -41,7 +41,7 @@ $(OBJD)/%.o:%.c $(SUBD)/termbox-next/bin/termbox.a: @echo "building static object $@" - @cd $(SUBD)/termbox-next && make + @(cd $(SUBD)/termbox-next && $(MAKE)) $(BIND)/$(NAME):$(OBJS) @echo "compiling $@" @@ -74,4 +74,4 @@ clean: @echo "cleaning workspace" @rm -rf $(BIND) @rm -rf $(OBJD) - @(cd $(SUBD)/termbox-next && make clean) + @(cd $(SUBD)/termbox-next && $(MAKE) clean)