-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (30 loc) · 936 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
PWD=$(shell pwd)
build:
./scripts/make.sh || true
build2:
BuildTags="docker" ./scripts/make.sh || true
run:
DEBUG=1 SYSD_UI_DIR="$$(pwd)/mods/ui/files" sysd/sysd
run2:
DEBUG=1 sysd/sysd --SYSD_BACKEND="docker"
test:
env
clean:
rm -rf .gopath || true
rm -rf .tmp || true
rm -rf sysd/sysd || true
Manifest:
find . -type f | grep -v -e "^\./\.git" \
| grep -v -e "^\./\.gopath/" \
| grep -v -e "^\./\.tmp/" \
| grep -v -e "^\./sysd/sysd$$" \
| grep -v -e "^\./pkg/tgz/" \
| grep -v -e "^\./sysd-[0-9]\+\.[0-9]\+\.[0-9]\+.tar.gz$$" \
| grep -v -e "^\./sysd-[0-9]\+\.[0-9]\+\.[0-9]\+/" \
| sort | uniq > Manifest
dist:
./scripts/tarball.sh || true
install:
install -D --mode=0644 sysd/sysd $(DESTDIR)/usr/sbin/sysd
install -D --mode=0644 sysd-cli/sysd-cli $(DESTDIR)/usr/bin/sysd-cli
.PHONY: clean Manifest