-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
77 lines (58 loc) · 1.58 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
YARA_VERSION := v3.7.1
GO := $(shell which go)
XGO := $(shell which xgo)
DOCKER := $(shell which docker)
TARGET_DIR := "build"
# "yara-rules/x-go-yara"
DOCKER_IMAGE := "x-go-yara"
# DOCKER_BUILD := $(shell docker images | grep $(DOCKER_IMAGE))
DEPS := "https://github.com/VirusTotal/yara/archive/$(YARA_VERSION).tar.gz"
.PHONY: all clean local linux linux-x86 linux-x64 darwin darwin-x86 darwin-x64 windows windows-x86 windows-x64
ifeq ($(GO), "")
@echo "You must install Go first. Please visit https://golang.org/ and follow the instructions"
exit 1
endif
ifeq ($(DOCKER), "")
@echo "You must install Docker first. Please visit https://www.docker.com/ and follow the instructions"
exit 1
endif
# ifeq ($(DOCKER_BUILD), "")
# @echo "Building a docker image to compile Yara-Endpoint"
# $(shell docker build "https://github.com/Xumeiquer/xgo.git#:docker/go-latest" -t $(DOCKER_IMAGE))
# endif
all:
make -C client
make -C server
linux:
make -C client linux
make -C server linux
linux-x86:
make -C client linux-x86
make -C server linux-x86
linux-x64:
make -C client linux-x64
make -C server linux-x64
darwin:
make -C client darwin
make -C server darwin
darwin-x86:
make -C client darwin-x86
make -C server darwin-x86
darwin-x64:
make -C client darwin-x64
make -C server darwin-x64
windows:
make -C client windows
make -C server windows
windows-x86:
make -C client windows-x86
make -C server windows-x86
windows-x64:
make -C client windows-x64
make -C server windows-x64
local:
make -C client local
make -C server local
clean:
make -C client clean
make -C server clean