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.