diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | lib/Makefile | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -12,7 +12,7 @@ CXX := $(PREFIX)g++ CXXFLAGS := -g -O0 -Wall -Wextra -I. lib/libmatcha.a: - make -C lib ARCH=$(ARCH) + $(MAKE) -C lib ARCH=$(ARCH) .PHONY: lib/libmatcha.a %.o: %.cc @@ -66,5 +66,5 @@ docker: docker/Dockerfile .PHONY: docker clean: - make -C lib clean - rm -f example/demo1 example/demo1.o + $(MAKE) -C lib clean + $(RM) example/demo1 example/demo1.o diff --git a/lib/Makefile b/lib/Makefile index aedd1d4..ab51aa8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -34,7 +34,7 @@ libmatcha.a: $(OBJS) $(AS) -c -o $@ $(ASFLAGS) $< clean: - rm -f $(OBJS) $(DEPS) - rm -f libmatcha.a + $(RM) $(OBJS) $(DEPS) + $(RM) libmatcha.a -include $(DEPS) |