Debian Codegraph @

web-src/module.cook

raw
1 /*
2 * fstrcmp - fuzzy string compare library
3 * Copyright (C) 2009 Peter Miller
4 * Written by Peter Miller <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or (at
9 * your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 integration-build-targets +=
21 [fromto web-src/%0% web-site/%0%
22 [match_mask web-src/%0%.html [source_files]]
23 ]
24 [fromto web-src/%0%.png.uue web-site/%0%.png
25 [match_mask web-src/%0%.png.uue [source_files]]
26 ]
27 [fromto web-src/%0%.png.uue web-site/%0%.128.png
28 [match_mask web-src/%0%.png.uue [source_files]]
29 ]
30 [fromto web-src/%0%.png.uue web-site/%0%.64.png
31 [match_mask web-src/%0%.png.uue [source_files]]
32 ]
33 web-site/[project_minus].README
34 web-site/[project_minus].pdf
35 ;
36
37
38 web-src/%.html.d: web-src/%.html
39 set no-cascade
40 {
41 c_incl -nc -ns -eia -r -nrec
42 [addprefix "-I" [search_list]]
43 -prefix "'cascade web-src/"%".html ='"
44 -suffix "';'"
45 [resolve web-src/%.html]
46 [prepost "-rlp=" "" [search_list]] /* remove leading path */
47 -o [target];
48 }
49
50 #include-cooked [addsuffix ".d" [match_mask web-src/%.html [source_files]]]
51
52 web-site/%.html: web-src/%.html: etc/version.so
53 set shallow
54 {
55 roffpp
56 [addprefix "-I" [search_list]]
57 [resolve web-src/%.html]
58 | groff -Tascii -t -P-bcu -man
59 > [target];
60 validate [target];
61 }
62
63
64 %0%: %0%.uue
65 {
66 uudecode -o [target] [resolve %0%.uue];
67 }
68
69 web-src/%1.%2.png: web-src/%1.png
70 {
71 convert [resolve web-src/%1.png] -scale %2 [target];
72 }
73
74 web-site/%.png: web-src/%.png
75 set shallow
76 {
77 cp [resolve web-src/%.png] [target];
78 }
79
80
81 web-site/[project_minus].README: README
82 {
83 cp [resolve README] [target];
84 }
85
86 web-site/[project_minus].pdf: etc/reference.pdf
87 {
88 cp [resolve etc/reference.pdf] [target];
89 }