Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
add examples to the makefile and travis
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <denys@sourced.tech>
  • Loading branch information
Denys Smirnov authored and dennwc committed Jun 20, 2019
1 parent d995675 commit 8693b45
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ script:
- make package-all
- ls -l ./build
- make test
- make examples

deploy:
provider: releases
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,18 @@ test: gotest
cd tests && cmake . && make && CTEST_OUTPUT_ON_FAILURE=1 make test
endif

ifneq ("$(HOSTOS)", "darwin")
examples:
cd examples && cmake . && make
else
examples:
ln -s ../$(OUT_OSX)/libuast.so ./examples/libuast.so && \
cd examples && cmake . && make
endif

all: build-all package-all

.PHONY: clean build test install
.PHONY: clean build test examples install

clean:
rm -rf $(OUT_DIR)

0 comments on commit 8693b45

Please sign in to comment.