-
Notifications
You must be signed in to change notification settings - Fork 89
/
Makefile
188 lines (147 loc) · 3.83 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
ROOT=.
# the latest stable version is:
STABLE= 8.11.1
RELDATE = "2024-12-11"
# The planned *next* release is:
NEXTDATE = "2025-02-05"
# 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= \
404.html \
about.html \
book.html \
changes.html \
dashboard.html \
dashboardd.html \
dashboard5.html \
dashboard2.html \
dashboard1.html \
donation.html \
download.html \
foot.html \
gethelp.html \
head.html \
index.html \
info \
libs.html \
news.html \
newslog.html \
oldnews.html \
search.html \
sponsors.html \
support.html \
web-editing.html \
download/index.html
all: $(PAGES)
cd ca && make
cd docs && make
cd libcurl && make
cd mail && make
cd rfc && make
cd dev && make
cd windows && make
cd qnx && make
cd snapshots && make
cd tiny && make
cd logo && make
cd trurl && make
cd wcurl && 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)
download/index.html: release.t mk-download.pl
./mk-download.pl > $@
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)
mkdir -p .well-known
sed -e "s/%date/`date -d '9 months' -u +%Y-%m-%dT00:00:00Z/`" < security.txt.in > .well-known/security.txt
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) splitchange.pl _single-head-template.html _single-foot-template.html changes.t changescss.t
$(ACTION)
./splitchange.pl
cd ch && $(MAKE)
gethelp.html: _gethelp.html $(MAINPARTS)
$(ACTION)
book.html: _book.html $(MAINPARTS)
$(ACTION)
about.html: _about.html docs/_menu.html $(MAINPARTS)
$(ACTION)
sponsors.html: _sponsors.html docs/_menu.html $(MAINPARTS)
$(ACTION)
dashboardd.html: _dashboardd.html dash.gen dashboard.t $(MAINPARTS)
$(ACTION)
dashboard.html: _dashboard.html dash.gen dashboard.t $(MAINPARTS)
$(ACTION)
dashboard5.html: _dashboard5.html dash.gen dashboard.t $(MAINPARTS)
$(ACTION)
dashboard2.html: _dashboard2.html dash.gen dashboard.t $(MAINPARTS)
$(ACTION)
dashboard1.html: _dashboard1.html dash.gen dashboard.t $(MAINPARTS)
$(ACTION)
libs.html: _libs.html $(MAINPARTS)
$(ACTION)
support.html: _support.html $(MAINPARTS)
$(ACTION)
perlcheck:
@(for f in `git ls-files | egrep '\.(pl|cgi)$$' `; do \
perl -c $$f; \
res=$$?; \
if test "$$res" != "0"; then \
exit 2; \
fi \
done)
full: all
@cd libcurl; make
clean:
rm -f *~ $(PAGES)
cd docs && make clean
cd libcurl && make clean
cd mail && make clean
cd rfc && make clean
cd dev && make clean
cd tiny && make clean
cd ch && make clean