projects
/
centaur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b3f4d1
)
Add simple 'make check'
author
norly
<ny-git@enpas.org>
Sun, 24 Feb 2013 14:02:25 +0000
(14:02 +0000)
committer
norly
<ny-git@enpas.org>
Sun, 24 Feb 2013 14:02:25 +0000
(14:02 +0000)
Uses elfedit to copy itself and ensure both versions are identical.
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 9e07a474857cd578c5d18a1524aeb2f184db3a00..32dbe7c1d595e05e109c4d381028898a5d8aa784 100644
(file)
--- 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")