|
@@ -1,5 +1,5 @@
|
|
|
|
|
|
-all: DIST/goreact
|
|
|
|
|
|
+all: DIST/{{.projName}}
|
|
|
|
|
|
clean:
|
|
clean:
|
|
rm -rf DIST
|
|
rm -rf DIST
|
|
@@ -7,7 +7,7 @@ clean:
|
|
DIST:
|
|
DIST:
|
|
mkdir -p DIST
|
|
mkdir -p DIST
|
|
|
|
|
|
-DIST/goreact: DIST
|
|
|
|
|
|
+DIST/{{.projName}}: DIST
|
|
cd go;make
|
|
cd go;make
|
|
cp go/DIST/* DIST/
|
|
cp go/DIST/* DIST/
|
|
|
|
|
|
@@ -19,11 +19,11 @@ frontend/dist: frontend/node_modules
|
|
cd frontend; yarn build
|
|
cd frontend; yarn build
|
|
|
|
|
|
|
|
|
|
-backend: DIST/goreact
|
|
|
|
|
|
+backend: DIST/{{.projName}}
|
|
frontend: frontend/dist
|
|
frontend: frontend/dist
|
|
|
|
|
|
dev: clean backend frontend
|
|
dev: clean backend frontend
|
|
- tmux split "DEBUG=1 DIST/goreact;$$SHELL"
|
|
|
|
|
|
+ tmux split "DEBUG=1 DIST/{{.projName}};$$SHELL"
|
|
cd frontend; yarn start
|
|
cd frontend; yarn start
|
|
|
|
|
|
test:
|
|
test:
|
|
@@ -34,5 +34,5 @@ generate:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-.PHONY: all clean backend builder generate DIST/goreact
|
|
|
|
|
|
+.PHONY: all clean backend builder generate DIST/{{.projName}}
|
|
|
|
|