From 9ee1aacd836f4d70ed3e51957bb4e897b6281df6 Mon Sep 17 00:00:00 2001 From: Aidan Hahn Date: Mon, 7 Mar 2022 11:40:22 -0800 Subject: [PATCH] fix readme and add test instructions Signed-off-by: Aidan Hahn --- Makefile | 2 +- README.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6ac8dd0..d999773 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ ALOG_LIB = $(TARGET_DIR)/alog.so include $(dir $(lastword $(MAKEFILE_LIST)))tests/tests.mk -.PHONY: so +.PHONY: alog-so alog-so: $(if $(shell stat $(ALOG_LIB)), clean) $(ALOG_LIB) $(ALOG_LIB): $(TARGET_DIR) $(ALOG_OBJ) diff --git a/README.md b/README.md index 76b8a43..dc86de0 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,16 @@ Anything that is a file descriptor and can be written to with write() and fsync( # How to build ```bash -$ make so +$ make alog-so ``` # How to test ``` +$ make alog-tests +``` # Variables -The following (shell) variables can be set to influence behavior at runtime: +The following (shell) variables can be set at compile time: - **ALOG_DEBUG**: Set this variable to compile with debug symbols - **ALOG_HIJACK_PRINTF**: Set this variable to compile along with a printf implementation that leverages alog. Probably dont though.