2
0
mirror of https://github.com/msantos/xmppipe synced 2024-11-13 13:10:32 +00:00

makefile: ensure compile before tests

This commit is contained in:
Michael Santos 2017-04-16 15:24:01 -04:00
parent f734b5b77b
commit 140470458f

View File

@ -1,5 +1,6 @@
.PHONY: all static clean test
PROG=xmppipe
RM=rm
UNAME_SYS := $(shell uname -s)
@ -23,7 +24,9 @@ XMPPIPE_SANDBOX_RLIMIT_NOFILE ?= -1
CFLAGS += -DXMPPIPE_SANDBOX=\"$(XMPPIPE_SANDBOX)\" -D$(XMPPIPE_SANDBOX) \
-DXMPPIPE_SANDBOX_RLIMIT_NOFILE=$(XMPPIPE_SANDBOX_RLIMIT_NOFILE)
all:
all: $(PROG)
$(PROG):
$(CC) -g -Wall $(CFLAGS) -o xmppipe src/*.c $(LDFLAGS) -lstrophe
static:
@ -36,7 +39,7 @@ static:
/usr/lib/*/libuuid.a
clean:
-@$(RM) xmppipe
-@$(RM) $(PROG)
test:
test: $(PROG)
-@PATH=.:$$PATH bats test