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