- Add Travis CI support

- Improve Makefile
This commit is contained in:
Babak Farrokhi 2015-10-27 08:46:23 +03:30
parent e81216fc95
commit a892ae2a9c
2 changed files with 8 additions and 4 deletions

2
.travis.yml Normal file
View File

@ -0,0 +1,2 @@
language: c
compiler: clang

View File

@ -10,15 +10,17 @@ SUBDIRS = libpidutil
PROGS = fsipd logfile_test
OBJ = logfile.o fsipd.o
all: $(SUBDIRS) fsipd
.PHONY: $(SUBDIRS) get-deps
all: get-deps $(SUBDIRS) fsipd
fsipd: $(OBJ)
$(CC) $(LDFLAGS) $(OBJ) $(LDLIBS) -o fsipd
.PHONY: $(SUBDIRS)
get-deps:
git submodule update --init libpidutil
$(SUBDIRS):
git submodule update --init $@
$(MAKE) -C $@ all
test: logfile.c logfile_test.c