You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
website/Makefile

32 lines
469 B
Makefile

GO_SOURCES = $(shell find . -name '*.go')
GO_EXECUTABLE = phc-website-server
.PHONY: all
all: js go
.PHONY: setup
setup:
mkdir -p public/js
.PHONY: js
js: setup
$(MAKE) -C frontend/
cp frontend/dist/*.min.js public/js/
#
# Build Server
#
.PHONY: go
go: $(GO_EXECUTABLE)
@echo "Compiled Server"
$(GO_EXECUTABLE): $(GO_SOURCES)
go build -o $(GO_EXECUTABLE) .
.PHONY: debug
debug:
@echo "GO_SOURCES = $(GO_SOURCES)"
@echo "GO_EXECUTABLE = $(GO_EXECUTABLE)"