Skip to content

Commit

Permalink
Add tsc to build step of makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddob committed Jun 2, 2020
1 parent 0b412fc commit f67176e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ VERSION ?= development
LDFLAGS := -X "github.com/doomsday-project/doomsday/version.Version=$(VERSION)-$(COMMIT_HASH)$(DIRTY)"
BUILD := go build -v -ldflags='$(LDFLAGS)' -o $(OUTPUT_NAME) $(BUILD_TARGET)

.PHONY: build darwin linux all clean embed server
.PHONY: build darwin linux all clean embed server tsc
.DEFAULT: build


build: embed server

server:
Expand All @@ -28,8 +29,11 @@ linux:

all: embed darwin linux

embed:
embed: tsc
GOOS="" GOARCH="" go run web/embed/main.go web/embed/mappings.yml

tsc:
tsc --project web/tsconfig.json

clean:
rm -f $(APP_NAME) $(APP_NAME)-darwin $(APP_NAME)-linux

0 comments on commit f67176e

Please sign in to comment.