summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-02-24 14:02:25 +0000
committernorly <ny-git@enpas.org>2013-02-24 14:02:25 +0000
commitca9ebec2dae232010645e9a875ee47427f29a21e (patch)
treea42e3aad3566ce0a5adaf1a4237cce229f008d82
parent9b3f4d15112365dbda20c668d0d57a74bd05e60c (diff)
Add simple 'make check'
Uses elfedit to copy itself and ensure both versions are identical.
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9e07a47..32dbe7c 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,14 @@ LDFLAGS := -lelf
default: $(EXE)
+.PHONY: check
+check: $(EXE)
+ $(EXE) $(EXE) -o testexe
+ @cmp $(EXE) testexe
+ @rm testexe
+ @echo "Check successful."
+
+
.PHONY: debug
debug: $(EXE)
gdb $(EXE) $(shell ps -e | sed "s/^ *\([0-9]\+\) .*$(PROJ).*$$/\1/g;te;d;:e")