diff options
author | norly <ny-git@enpas.org> | 2013-02-24 14:02:25 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-24 14:02:25 +0000 |
commit | ca9ebec2dae232010645e9a875ee47427f29a21e (patch) | |
tree | a42e3aad3566ce0a5adaf1a4237cce229f008d82 /Makefile | |
parent | 9b3f4d15112365dbda20c668d0d57a74bd05e60c (diff) |
Add simple 'make check'
Uses elfedit to copy itself and ensure both versions are identical.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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") |