Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Added build instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyah Check committed Aug 2, 2017
1 parent b3a4d9c commit 4be596d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ all: clean build fmt lint test vet install

build:
@echo "+ $@"
@sh ./build.sh
@go build -tags "$(BUILDTAGS) cgo" . ## Thinking of downloading the required go deps in here.
#@docker build -t ch3ck/ytd:v1 .

Expand Down
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#Script builds the program
#!/usr/bin/env bash

p=`pwd`
for d in $(ls ./cmd); do
echo "building cmd/$d"
cd $p/cmd/$d
env GOOS=linux GOARCH=386 go build
done
cd $p

0 comments on commit 4be596d

Please sign in to comment.