From 643093d7e0ebe98466e9b8375dfd1a372a8e1fd4 Mon Sep 17 00:00:00 2001 From: Aidan Hahn Date: Mon, 28 Feb 2022 01:14:56 -0800 Subject: [PATCH] add unique names so that makefiles including these dont have to account for conflict Signed-off-by: Aidan Hahn --- Makefile | 4 ++-- tests/tests.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 59e630d..25df43e 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ ALOG_LIB = $(TARGET_DIR)/alog.so include tests/tests.mk .PHONY: so -so: $(if $(shell stat $(ALOG_LIB)), clean) $(ALOG_LIB) +alog-so: $(if $(shell stat $(ALOG_LIB)), clean) $(ALOG_LIB) $(ALOG_LIB): $(TARGET_DIR) $(ALOG_OBJ) $(CC) $(LDFLAGS) -o $(ALOG_LIB) $(ALOG_OBJ) @@ -34,5 +34,5 @@ $(TARGET_DIR): mkdir $(TARGET_DIR) .PHONY: clean -clean: +alog-clean: rm $(ALOG_LIB) $(ALOG_OBJ) diff --git a/tests/tests.mk b/tests/tests.mk index 9cc1397..ef5360f 100644 --- a/tests/tests.mk +++ b/tests/tests.mk @@ -6,7 +6,7 @@ $(ALOG_TESTS): $(ALOG_LIB) $(CC) -o $(TARGET_DIR)/$@ $(BUILD_DIR)/$@.o $(ALOG_LIB) chmod +x $(TARGET_DIR)/$@ -run-tests: $(ALOG_TESTS) +alog-tests: $(ALOG_TESTS) for test in $^ ; do \ $(TARGET_DIR)/$$test ; \ done