Skip to content

Commit

Permalink
update Makefile for distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Jan 10, 2020
1 parent e562d9e commit 33ea647
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ build: setup
define _createDist
mkdir -p dist/$(1)_$(2)/$(DIST)
GOOS=$1 GOARCH=$2 go build -o dist/$(1)_$(2)/$(DIST)/$(NAME) cmd/$(NAME)/main.go
GOOS=$1 GOARCH=$2 go build -o dist/$(1)_$(2)/$(DIST)/json2dg cmd/json2dg/main.go
GOOS=$1 GOARCH=$2 go build -o dist/$(1)_$(2)/$(DIST)/ksu2json cmd/ksu2json/main.go
cp -r data README.md LICENSE dist/$(1)_$(2)/$(DIST)
mkdir -p dist/$(1)_$(2)/$(DIST)/djview
cp docs/draw_graph_d3.js docs/index.html docs/style.css docs/dataset.js dist/$(1)_$(2)/$(DIST)/djview
tar cfz dist/$(DIST)_$(1)_$(2).tar.gz -C dist/$(1)_$(2) $(DIST)
endef

Expand Down

0 comments on commit 33ea647

Please sign in to comment.