File: Makefile

package info (click to toggle)
tty-share 2.4.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,416 kB
  • sloc: javascript: 153; makefile: 20; sh: 10
file content (24 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
TTY_SERVER_ASSETS=$(wildcard frontend/public/*) frontend/public/index.html

.PHONY: all frontend clean cleanfront rebuild

all: assets_bundle.go
	@echo "Done"

rebuild: clean all

assets_bundle.go: $(TTY_SERVER_ASSETS)
	go install github.com/go-bindata/go-bindata/...
	go-bindata --prefix frontend/public/ -pkg server -o $@ frontend/public/*

frontend: cleanfront frontend/public/index.html assets_bundle.go

frontend/public/index.html:
	cd frontend && npm install && npm run build && cd -

cleanfront:
	rm -fr frontend/public

clean: cleanfront
	rm -fr assets_bundle.go
	@echo "Cleaned"