forked from curl/curl-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
147 lines (108 loc) · 3.08 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
ROOT=.
# the latest stable version is:
STABLE= 7.64.0
RELDATE = "6th of February 2019"
# The planned *next* release is:
NEXTDATE = "27th of March 2019"
# name of the dir to tempoary unpack and build zip files in:
TEMPDIR=tempzip
# generated file with binary package stats
STAT = packstat.t
# generated file with release info (STABLE and RELDATE)
RELEASE = release.t
include mainparts.mk
include setup.mk
MAINPARTS += _menu.html alert.t
FCPP_OPTS = -DSHOW_ALERT
PAGES= index.html mirrors.html libs.html help.html download.html changes.html \
about.html support.html newslog.html news.html head.html foot.html \
oldnews.html info web-editing.html donation.html search.html sponsors.html \
source.html 404.html book.html gethelp.html
all: $(PAGES)
cd ca && make
cd docs && make
cd libcurl && make
cd mail && make
cd mirror && make
cd legal && make
cd rfc && make
cd dev && make
cd windows && make
head.html: _head.html $(MAINPARTS)
$(ACTION)
404.html: _404.html $(MAINPARTS)
$(ACTION)
donation.html: _donation.html docs/_menu.html $(MAINPARTS)
$(ACTION)
search.html: _search.html $(MAINPARTS) sitesearch.t
$(ACTION)
web-editing.html: _web-editing.html $(MAINPARTS)
$(ACTION)
foot.html: _foot.html $(MAINPARTS)
$(ACTION)
index.html: _index.html $(MAINPARTS) release.t packstat.t
$(ACTION)
newslog.html: _newslog.html $(MAINPARTS)
$(ACTION)
news2.html: _news2.html $(MAINPARTS)
$(ACTION)
news.html: news2.html newslog.html
rm -f $@
./filter.pl < $< > $@
olddata.html: _oldnews.html $(MAINPARTS)
$(ACTION)
oldnews.html: olddata.html
rm -f $@
./filter.pl < $< > $@
info: _info packstat.t
$(ACTION)
$(RELEASE): Makefile
@echo "fixing $(RELEASE)"
@echo "#define __STABLE $(STABLE)" >$(RELEASE)
@echo "#define __RELDATE $(RELDATE)" >>$(RELEASE)
@echo "#define __NEXTDATE $(NEXTDATE)" >>$(RELEASE)
@echo "#define __STABLETAG $(STABLE)" | sed 's/\./_/g' >> $(RELEASE)
$(STAT): download.html Makefile
@echo "fixing $(STAT)"
@echo "#define __CURR "`grep -c "^.tr.class=.latest" $<` >$(STAT)
@echo "#define __PACKS `grep -c \"^<tr c\" $<`" >>$(STAT)
download.html: _download.html $(MAINPARTS) $(RELEASE) dl/files.html
$(ACTION)
download2.html: _download2.html $(MAINPARTS) $(RELEASE) dl/files.html
$(ACTION)
dl/files.html: dl/data/databas.db
cd dl; make
changes.html: _changes.html docs/_menu.html $(MAINPARTS)
$(ACTION)
source.html: _source.html $(MAINPARTS)
$(ACTION)
help.html: _help.html $(MAINPARTS)
$(ACTION)
gethelp.html: _gethelp.html $(MAINPARTS)
$(ACTION)
book.html: _book.html $(MAINPARTS)
$(ACTION)
mirrors.html: _mirrors.html $(MAINPARTS)
$(ACTION)
about.html: _about.html docs/_menu.html $(MAINPARTS)
$(ACTION)
sponsors.html: _sponsors.html docs/_menu.html $(MAINPARTS)
$(ACTION)
libs.html: _libs.html $(MAINPARTS)
$(ACTION)
support.html: _support.html $(MAINPARTS)
$(ACTION)
full: all
@cd libcurl; make
release:
cd download; ls -1 *curl* >curldist.txt;
@echo done
clean:
rm -f *~ $(PAGES)
cd docs && make clean
cd libcurl && make clean
cd mail && make clean
cd mirror && make clean
cd legal && make clean
cd rfc && make clean
cd dev && make clean