Skip to content

Commit

Permalink
Fix hybridgroup#201 by add 'make examples' command to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
deadprogram committed Feb 20, 2016
1 parent 7ef09a5 commit 05e54f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGES := gobot gobot/api gobot/platforms/firmata/client gobot/platforms/intel-iot/edison gobot/sysfs $(shell ls ./platforms | sed -e 's/^/gobot\/platforms\//')
.PHONY: test cover robeaux
.PHONY: test cover robeaux examples

test:
for package in $(PACKAGES) ; do \
Expand Down Expand Up @@ -31,3 +31,10 @@ endif
rm -rf robeaux-tmp/ ; \
rm -rf node_modules/ ; \
go fmt ./robeaux/robeaux.go ; \

EXAMPLES := $(shell ls examples/*.go | sed -e 's/examples\///')

examples:
for example in $(EXAMPLES) ; do \
go build -o /tmp/$$example examples/$$example ; \
done ; \

0 comments on commit 05e54f2

Please sign in to comment.