forked from ropwareJB/dnsflare
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (22 loc) · 690 Bytes
/
Copy pathmakefile
File metadata and controls
31 lines (22 loc) · 690 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
BIN_PATH := $(shell cd src && stack path --dist-dir --allow-different-user)
PWD := $(shell pwd)
bin: FORCE
cd src && stack build
make copy
watch: FORCE
cd src && stack build --allow-different-user --file-watch --exec "make -C ./.. copy"
copy: FORCE
cp src/${BIN_PATH}/build/dnsflare/dnsflare bin/;
docker: FORCE
docker build -f docker/Dockerfile -t dnsflare .
docker-server: FORCE
sudo docker run -p 53:53/tcp -p 53:53/udp -v ${PWD}/bin/config:/app/config dnsflare
debian: FORCE
docker create -ti --name dummy dnsflare bash
docker cp dummy:/app/dnsflare ./bin/dnsflare-debian
docker rm -f dummy
clean:
rm bin/dnsflare
cd src && stack clean --full
.PHONY: clean
FORCE: ;