Skip to content

Commit

Permalink
Fix build when dist does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
zyedidia committed Oct 4, 2022
1 parent f112e68 commit a85e7f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ test: eget
cd test; EGET_BIN= TEST_EGET=../eget go run test_eget.go

eget.1: man/eget.md
pandoc man/eget.md -s -t man -o dist/eget.1
pandoc man/eget.md -s -t man -o eget.1

package: build-dist eget.1
mkdir dist/eget-$(VERSION)-$(SYSTEM)
mkdir -p dist/eget-$(VERSION)-$(SYSTEM)
cp README.md dist/eget-$(VERSION)-$(SYSTEM)
cp LICENSE dist/eget-$(VERSION)-$(SYSTEM)
cp dist/eget.1 dist/eget-$(VERSION)-$(SYSTEM)
cp eget.1 dist/eget-$(VERSION)-$(SYSTEM)
if [ "${GOOS}" = "windows" ]; then\
cp dist/bin/eget-$(VERSION)-$(SYSTEM) dist/eget-$(VERSION)-$(SYSTEM)/eget.exe;\
cd dist;\
Expand Down
2 changes: 2 additions & 0 deletions tools/build-all.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func main() {
defer wg.Done()

cmd := exec.Command("make", "package")
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Env = os.Environ()
cmd.Env = append(cmd.Env,
fmt.Sprintf("GOOS=%s", platform),
Expand Down

0 comments on commit a85e7f1

Please sign in to comment.