Use $(MAKE) instead of make in Makefiles

This will pass the correct flags to the make
invocations.
pull/188/head
jvoisin 2022-01-17 22:16:45 +01:00 committed by Daniel Micay
parent b3d78bd5f6
commit 3fa30842ed
2 changed files with 4 additions and 4 deletions

View File

@ -133,10 +133,10 @@ tidy:
clean: clean:
rm -f $(OUT)/libhardened_malloc.so $(OBJECTS) rm -f $(OUT)/libhardened_malloc.so $(OBJECTS)
make -C test/ clean $(MAKE) -C test/ clean
test: $(OUT)/libhardened_malloc$(SUFFIX).so test: $(OUT)/libhardened_malloc$(SUFFIX).so
make -C test/ $(MAKE) -C test/
python3 -m unittest discover --start-directory test/ python3 -m unittest discover --start-directory test/
.PHONY: check clean tidy test .PHONY: check clean tidy test

View File

@ -23,8 +23,8 @@ EXECUTABLES := \
large_array_growth large_array_growth
all: $(EXECUTABLES) all: $(EXECUTABLES)
make -C simple-memory-corruption $(MAKE) -C simple-memory-corruption
clean: clean:
rm -f $(EXECUTABLES) rm -f $(EXECUTABLES)
make -C simple-memory-corruption clean $(MAKE) -C simple-memory-corruption clean