mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-22 05:33:45 +00:00
makefile
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
c8a22b5924
commit
5c2dcf5cec
2 changed files with 16 additions and 0 deletions
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
CGO_ENABLED ?= 0
|
||||
GOFLAGS ?= -trimpath -ldflags="-s -w"
|
||||
|
||||
PROG ?= pomme
|
||||
GO_SOURCES ?= $(shell find . -name "*.go" -type f ! -name '*_test*')
|
||||
GO_TEST_SOURCES ?= $(shell find . -name "*_test.go" -type f)
|
||||
|
||||
all: frontend backend
|
||||
|
||||
.PHONY: frontend
|
||||
frontend:
|
||||
go generate ./...
|
||||
|
||||
backend: $(GO_SOURCES)
|
||||
go build ./cmd/pomme
|
|
@ -1,3 +1,4 @@
|
|||
// Package frontend is where the frontend served by pomme comes from.
|
||||
package frontend
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue