Skip to content

Commit f640cc2

Browse files
committed
Add package.
1 parent 5d9d9f1 commit f640cc2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ test:
1818
@go vet $(PKGS)
1919
@go test -cover -v $(PKGS)
2020

21+
package: clean build
22+
@echo "Creating package"
23+
@mkdir -p builds/$(VERSION)
24+
@cp -R bin/ builds/$(VERSION)/bin
25+
@cd builds/$(VERSION)/ && tar -pczf ../lora_semtech_bridge_$(VERSION)_linux_amd64.tar.gz .
26+
@rm -rf builds/$(VERSION)
27+
2128
# shortcuts for development
2229

2330
serve: build
2431
./bin/semtech-bridge
2532

26-
update-vendor:
27-
@echo "Updating vendored packages"
28-
@govendor update +external
29-
3033
run-compose-test:
3134
docker-compose run --rm semtechbridge make test

0 commit comments

Comments
 (0)