Permalink
Browse files

Make 'make test' run the self-tests.

  • Loading branch information...
1 parent 561c6b8 commit 8c6e57fce17f3950ee256f8b9351c3f45d4d6996 @nelhage committed Nov 13, 2008
Showing with 6 additions and 3 deletions.
  1. +6 −3 Makefile
View
@@ -3,11 +3,14 @@ OBJECTS=gc.o symbol.o stack.o read.o
TEST_OBJECTS=$(OBJECTS) test.o
TEST_CFLAGS=-DBUILD_TEST
-TEST=test
+TESTER=tester
-all: $(TEST)
+all: $(TESTER)
-$(TEST): $(TEST_OBJECTS)
+test: $(TESTER)
+ ./$<
+
+$(TESTER): $(TEST_OBJECTS)
gcc -o $@ $(TEST_OBJECTS) $(LDFLAGS)
clean:

0 comments on commit 8c6e57f

Please sign in to comment.