18 lines
370 B
Makefile
18 lines
370 B
Makefile
all: build
|
|
|
|
nil:
|
|
|
|
reactNextJS/out/*: reactNextJS/app/* reactNextJS/*.js reactNextJS/*.json
|
|
cd reactNextJS && npm install && npm run build
|
|
nextjs: reactNextJS/out/*
|
|
serverdeps: nextjs *.go reactNextJS/addToServer.go
|
|
|
|
build: serverdeps
|
|
go build server.go
|
|
run: serverdeps
|
|
go run server.go
|
|
air: nextjs nil
|
|
air server.go
|
|
|
|
.PHONY: all build nextjs serverdeps run air nil
|