-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 964 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 964 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
39
all: curlrc
# Update list of curl(1) options
curlrc: samples/lists/curlrc-options.tsv
samples/lists/curlrc-options.tsv: tools/curl/.git
tools/update-curl-opts.sh $(^D)/docs/cmdline-opts > $@
# Checkout curl(1)'s latest revision from upstream
tools/curl:
if test -d $@ && test -d $@/.git; \
then git -C $@ pull; \
else git clone --depth=1 https://github.com/curl/curl.git $@; \
fi
tools/curl/.git: tools/curl
touch $@
test -d $@/../docs/cmdline-opts
# Update torrc(5) format specification
torrc: samples/torrc_format.txt tools/tor.asciidoc
TOR_HOST = https://gitlab.torproject.org/tpo/core/tor/-/
samples/torrc_format.txt:
case `uname` in Darwin) flags=' --xattr';; *) unset flags;; esac; \
wget $${flags} --no-config -O "$@" "${TOR_HOST}raw/HEAD/doc/$(@F)?inline=false"
tools/tor.asciidoc:
curl -Lsq "${TOR_HOST}raw/HEAD/doc/man/tor.1.txt?inline=false" > $@
# Nuke untracked files and build artefacts
clean:
rm -rf tools/curl
.PHONY: clean