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:
parent
1e9b701542
commit
643093d7e0
2 changed files with 3 additions and 3 deletions
4
Makefile
4
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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue