-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
39 lines (27 loc) · 870 Bytes
/
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
# The technology to consider.
TECH = radius
# Send email messages as this user. Please edit it.
FROM = [email protected]
# Send email messages to this working group. Please edit it.
TO = [email protected]
# Version of the software.
VERSION = 1.0
all: message.txt
.PHONY: sync
sync:
@rsync -q -avz --delete ftp.rfc-editor.org::internet-drafts internet-drafts/
#internet-drafts/all_id.txt: sync
list.txt: internet-drafts/all_id.txt
@./ietf-tech-report $(TECH) > $@
message.txt: top.txt list.txt
@cp top.txt $@
@cat list.txt >> $@
send: message.txt
@mail -aFrom:$(FROM) -s "Automatic tech report for `date`" $(TO) < message.txt
.PHONY: dist
dist: ietf-tech-report-$(VERSION).tar.gz
ietf-tech-report-$(VERSION).tar.gz: .git
@git archive --format=tar --prefix=ietf-tech-report-$(VERSION)/ master | gzip > $@
.PHONY: clean
clean:
@rm -f list.txt message.txt