-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 722 Bytes
/
Makefile
File metadata and controls
38 lines (32 loc) · 722 Bytes
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
build all:
go mod tidy
go build -C ./exec -o ../htmlc
install:
make dependencies
make build
sudo cp ./htmlc /usr/bin/htmlc
local:
make dependencies
make build
dev:
make build
sudo cp ./htmlc /usr/bin/htmlc
deps dependencies:
ifeq (,$(wildcard $(/usr/bin/dnf)))
sudo dnf install pcre-devel
sudo dnf install elixir erlang
sudo dnf install go
else ifeq (,$(wildcard $(/usr/bin/apt)))
sudo apt install libpcre3-dev
sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang
sudo apt update
sudo apt install elixir erlang-dev erlang-xmerl
else ifeq (,$(wildcard $(/usr/bin/yum)))
sudo yum install pcre-dev
pacman -S elixir
endif
clean:
rm ./htmlc
sudo rm /usr/bin/htmlc
test-fiber:
cd ./gofiber && go test