Skip to content

Commit 926074d

Browse files
author
Michael Kipper
committed
Build semian libraries before unit tests
1 parent 3655ae8 commit 926074d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/semian/test/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ INCLUDES := . /usr/local/include/ruby-2.6.0/ruby/backward /usr/local/include/rub
1313
CFLAGS := $(patsubst %,-l%,$(LIBRARIES)) $(patsubst %,-W%,$(WARNINGS)) $(patsubst %,-D%,$(DEFINES)) $(patsubst %,-I%,$(INCLUDES)) -std=gnu99 -O0 -g
1414
ROOTDIR := /workspace
1515
OBJDIR := $(ROOTDIR)/tmp/x86_64-linux/semian/2.6.3
16-
OBJS := $(wildcard $(OBJDIR)/*.o)
16+
OBJS = $(wildcard $(OBJDIR)/*.o)
1717
TESTS := semian_test
1818

19-
all : $(TESTS)
19+
all : libs $(TESTS)
20+
21+
libs :
22+
cd $(ROOTDIR) && SEMIAN_DEBUG=1 bundle exec rake build
2023

2124
%_test.o : %_test.c $(filter-out $(OBJDIR)/semian.o,$(OBJS))
2225
$(CC) -o $@ $^ $(CFLAGS)

0 commit comments

Comments
 (0)