add unique names so that makefiles including these dont have to account for conflict

Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
Aidan Hahn 2022-02-28 01:14:56 -08:00
parent 1e9b701542
commit 643093d7e0
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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