-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·55 lines (46 loc) · 1.05 KB
/
Makefile
File metadata and controls
executable file
·55 lines (46 loc) · 1.05 KB
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
.PHONY: d
help:
@echo "Invalid args!"
@echo "make <u/d> <flags>"
@echo "u - Build with upx"
@echo "d - Default build"
@echo ""
@echo "Flags:"
@echo "mt=true/false - Multithreading (faster)"
@echo "sleep=0 - Time to sleep (in seconds)"
@echo ""
@echo "Examples:"
@echo "make d mt=true sleep=5"
@echo "make u"
test:
v run installer/update.v
launch_docker:
nim c -d:quiet --hints:off docker/docker.nim
./docker/docker cbl
@rm docker/docker
ubuntu:
docker build -f tests/ubuntu.dockerfile -t ubuntu .
docker run -it ubuntu
arch:
docker build -f tests/arch.dockerfile -t arch .
docker run -it arch
fedora:
docker build -f tests/fedora.dockerfile -t fedora .
docker run -it fedora
# sudo yum install snapd
docker_clear:
docker rmi -f $(docker images -aq)
payload:
v run ./scripts/payload.v
payload1:
nim c -d:quiet --hints:off scripts/payload.nim
./scripts/payload
@rm scripts/payload
e:
cd enc; go run .
clear:
rm *.bin
u:
bash scripts/build.sh upx $(mt) $(sleep)
d:
bash scripts/build.sh default $(mt) $(sleep)