summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-06-29 12:31:23 -0600
committermo khan <mo.khan@gmail.com>2020-06-29 12:31:23 -0600
commitc39c57090eb622453234ac059e0604c8c143941f (patch)
treee317896e3d5a9682c75e4b4a3db70859ba80c721 /Makefile
parent8257643c54d840ebf80c317e3dcfc8110f453c95 (diff)
Make `all` the default
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 978d3f2..2089a4c 100755
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,6 @@ OBJS := $(addprefix $(BUILDDIR)/,priority_queue_test.o stack_test.o min_stack_te
$(BUILDDIR)/%.o : src/01/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
-test : all
- cgreen-runner -c -v $(BUILDDIR)/program
-
-ci : all
- cgreen-runner -c -v --xml=$(BUILDDIR)/ $(BUILDDIR)/program
-
.PHONY: all
all: $(OBJS) $(BUILDDIR)/html
$(CC) $(OBJS) $(LIBS) -o $(BUILDDIR)/program
@@ -31,3 +25,9 @@ $(BUILDDIR)/html :
.PHONY: clean
clean:
rm -fr build
+
+test : all
+ cgreen-runner -c -v $(BUILDDIR)/program
+
+ci : all
+ cgreen-runner -c -v --xml=$(BUILDDIR)/ $(BUILDDIR)/program