Skip to content

Commit

Permalink
Implement make build
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed May 19, 2019
1 parent c92887e commit 5f477bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,11 @@ install:
- make install-lib-curl
script:
- make check
- if [[ "$QEMU_PLATFORM" ]]; then
docker run skydev-test ci-scripts/build.sh;
if
before_deploy:
- export VERSION="$(git describe --tags --exact-match HEAD 2> /dev/null)"
- export ARCH="$(uname -m)"
- export OS="$(uname -s)"
- if [[ "$QEMU_PLATFORM" ]]; then
docker run skydev-test -v $PWD:/go/src/github.com/skycoin/libskycoin ci-scripts/build.sh;
if
- make build
- if [[ -z "$QEMU_PLATFORM" ]]; then make build-libc ; if
- tar -c -z -f libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz -C build ./*
deploy:
Expand Down
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,13 @@ $(BUILDLIB_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES)
go build -buildmode=c-archive -o $(BUILDLIB_DIR)/libskycoin.a $(LIB_FILES)
mv $(BUILDLIB_DIR)/libskycoin.h $(INCLUDE_DIR)/

## Build libskycoin C static library
build-libc-static: $(BUILDLIB_DIR)/libskycoin.a
build-libc-static: $(BUILDLIB_DIR)/libskycoin.a ## Build libskycoin C static library

## Build libskycoin C shared library
build-libc-shared: $(BUILDLIB_DIR)/libskycoin.so
build-libc-shared: $(BUILDLIB_DIR)/libskycoin.so ## Build libskycoin C shared library

## Build libskycoin C client libraries
build-libc: configure-build build-libc-static build-libc-shared
build-libc: configure-build build-libc-static build-libc-shared ## Build libskycoin C client libraries

build: build-libc ## Build all C libraries

## Build libskycoin C client library and executable C test suites
## with debug symbols. Use this target to debug the source code
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ After that, run `make docs` for a new docs generation. You can found the api doc

|Target |Help|
| :------------- | :----------: |
|build-libc-static |Build libskycoin C static library|
|build-libc-shared |Build libskycoin C shared library|
|build-libc |Build libskycoin C client libraries|
|build |Build all C libraries
|test-libc |Run tests for libskycoin C client library|
|docs |Generate documentation for all libraries|
|docs-libc |Generate libskycoin documentation|
Expand All @@ -163,3 +167,4 @@ After that, run `make docs` for a new docs generation. You can found the api doc
|install-deps-libc-osx |Install locally dependencies for testing libskycoin|
|format |Formats the code. Must have goimports installed (use make install-linters).|
|clean-libc |Clean files generate by library|

0 comments on commit 5f477bb

Please sign in to comment.