Still refactoring, better _frontend and _public structuring
This commit is contained in:
@@ -3,33 +3,31 @@ GO_SOURCES = $(shell find . -name '*.go')
|
||||
GO_EXECUTABLE = phc-website-server
|
||||
|
||||
.PHONY: all
|
||||
all: frontend go
|
||||
all: frontend backend
|
||||
|
||||
#
|
||||
# Build Frontend
|
||||
#
|
||||
|
||||
.PHONY: setup
|
||||
setup:
|
||||
mkdir -p public/js
|
||||
mkdir -p public/css
|
||||
|
||||
.PHONY: frontend
|
||||
frontend: setup
|
||||
$(MAKE) -C frontend/
|
||||
cp frontend/dist/*.min.js public/js/
|
||||
cp frontend/dist/*.css public/css/
|
||||
frontend:
|
||||
$(MAKE) -C _frontend/
|
||||
@echo "Built Frontend"
|
||||
|
||||
#
|
||||
# Build Server
|
||||
# Build Backend
|
||||
#
|
||||
|
||||
.PHONY: go
|
||||
go: $(GO_EXECUTABLE)
|
||||
@echo "Compiled Server"
|
||||
.PHONY: backend
|
||||
backend: $(GO_EXECUTABLE)
|
||||
@echo "Built Backend"
|
||||
|
||||
$(GO_EXECUTABLE): $(GO_SOURCES)
|
||||
go build -o $(GO_EXECUTABLE) .
|
||||
go build -o $(GO_EXECUTABLE) ./cmd/phc-website-server
|
||||
|
||||
#
|
||||
# Debug
|
||||
#
|
||||
|
||||
.PHONY: debug
|
||||
debug:
|
||||
|
||||
Reference in New Issue
Block a user