forked from jheidel/timelapse-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (29 loc) · 727 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ts := $(shell /bin/date "+%s")
all: check build
check:
./checkdeps.sh
web/build:
cd web && $(MAKE)
assetfs: web/build
go-bindata web/build/default/...
debugfs: web/build
go-bindata -debug web/build/default/...
go:
go get -d -v
go build -ldflags "-X main.BuildTimestamp=$(ts)"
.PHONY: debug build
debug: debugfs go
build: assetfs go
clean:
cd web && $(MAKE) clean
rm bindata.go timelapse-queue
install:
mkdir -p /usr/local/bin/timelapse/
cp timelapse-queue /usr/local/bin/timelapse/
cp timelapse.service /usr/local/bin/timelapse/
systemctl link /usr/local/bin/timelapse/timelapse.service
stop:
systemctl stop timelapse.service
start:
systemctl start timelapse.service
reinstall: stop install start