| 1 |
/* |
| 2 |
* fstrcmp - fuzzy string compare library |
| 3 |
* Copyright (C) 2009, 2011 Peter Miller |
| 4 |
* |
| 5 |
* This program is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 3 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
all += documentation; |
| 20 |
|
| 21 |
documentation: |
| 22 |
[fromto man/man%1/%2.%1 man/cat%1/%2.%1 |
| 23 |
[match_mask man/man%1/%2.%1 [source_files]] |
| 24 |
] |
| 25 |
etc/reference.pdf |
| 26 |
; |
| 27 |
|
| 28 |
man/cat%1/%2.%1: man/man%1/%2.%1 |
| 29 |
etc/groff.sh |
| 30 |
{ |
| 31 |
sh [resolve etc/groff.sh] |
| 32 |
[addprefix "-I" [search_list]] |
| 33 |
-Tascii -t -P-c -man |
| 34 |
[resolve man/man%1/%2.%1] |
| 35 |
> [target]; |
| 36 |
} |
| 37 |
|
| 38 |
man/man%1/%2.%1.d: man/man%1/%2.%1 |
| 39 |
set no-cascade |
| 40 |
{ |
| 41 |
c_incl -nc -ns -api -nrec |
| 42 |
--lang\=roff |
| 43 |
[addprefix "-I" [search_list]] |
| 44 |
[resolve man/man%1/%2.%1] |
| 45 |
-prefix "'cascade man/man%1/%2.%1 ='" |
| 46 |
-suffix "';'" |
| 47 |
[addprefix "-rlp=" [search_list]] |
| 48 |
-o [target]; |
| 49 |
} |
| 50 |
|
| 51 |
man/man%1/%2.so.d: man/man%1/%2.so |
| 52 |
set no-cascade |
| 53 |
{ |
| 54 |
c_incl -nc -ns -api -nrec |
| 55 |
--lang\=roff |
| 56 |
[addprefix "-I" [search_list]] |
| 57 |
[resolve man/man%1/%2.so] |
| 58 |
-prefix "'cascade man/man%1/%2.so ='" |
| 59 |
-suffix "';'" |
| 60 |
[addprefix "-rlp=" [search_list]] |
| 61 |
-o [target]; |
| 62 |
} |
| 63 |
|
| 64 |
etc/%.so.d: etc/%.so |
| 65 |
set no-cascade |
| 66 |
{ |
| 67 |
c_incl -nc -ns -api -nrec |
| 68 |
--lang\=roff |
| 69 |
[addprefix "-I" [search_list]] |
| 70 |
[resolve etc/%.so] |
| 71 |
-prefix "'cascade etc/%.so ='" |
| 72 |
-suffix "';'" |
| 73 |
[addprefix "-rlp=" [search_list]] |
| 74 |
-o [target]; |
| 75 |
} |
| 76 |
|
| 77 |
#include-cooked [addsuffix ".d" [match_mask etc/%.man [source_files]]] |
| 78 |
#include-cooked [addsuffix ".d" [match_mask man/man%1/%2.%1 [source_files]]] |
| 79 |
#include-cooked [addsuffix ".d" [match_mask man/%0%.so [source_files]]] |
| 80 |
|
| 81 |
etc/%.pdf: etc/%.man etc/page-list.awk |
| 82 |
etc/groff.sh |
| 83 |
{ |
| 84 |
sh [resolve etc/groff.sh] |
| 85 |
[addprefix "-I" [search_list]] |
| 86 |
-t -man |
| 87 |
[resolve etc/%.man] |
| 88 |
> %.ps.tmp; |
| 89 |
psselect -p`awk -f [resolve etc/page-list.awk] %.ps.tmp` |
| 90 |
%.ps.tmp > %.ps; |
| 91 |
rm %.ps.tmp |
| 92 |
set silent; |
| 93 |
ps2pdf %.ps [target]; |
| 94 |
rm %.ps |
| 95 |
set silent; |
| 96 |
} |
| 97 |
|
| 98 |
etc/%.man.d: etc/%.man |
| 99 |
set no-cascade |
| 100 |
{ |
| 101 |
c_incl -nc -ns -api -nrec |
| 102 |
--lang\=roff |
| 103 |
[addprefix "-I" [search_list]] |
| 104 |
[resolve etc/%.man] |
| 105 |
-prefix "'cascade etc/%.man ='" |
| 106 |
-suffix "';'" |
| 107 |
[addprefix "-rlp=" [search_list]] |
| 108 |
-o [target]; |
| 109 |
} |
| 110 |
|
| 111 |
cascade etc/reference.man = etc/ref-parts.so; |
| 112 |
|
| 113 |
etc/ref-parts.so: [match_mask man/man%1/%2.%1 [source_files]] |
| 114 |
etc/ref-ptx.sh |
| 115 |
{ |
| 116 |
sh -f [resolve etc/ref-ptx.sh] |
| 117 |
[match_mask man/man%1/%2.%1 [source_files]] |
| 118 |
> [target]; |
| 119 |
} |
| 120 |
#include-cooked etc/ref-parts.so.d |
| 121 |
|
| 122 |
#if [count [match_mask etc/new.%.so [source_files]]] |
| 123 |
etc/new.so: : etc/new.sh [match_mask etc/new.%.so [source_files]] |
| 124 |
{ |
| 125 |
sh [resolve etc/new.sh] -r [match_mask etc/new.%.so [need]] > [target]; |
| 126 |
} |
| 127 |
#include-cooked-nowarn etc/new.so.d |
| 128 |
#endif |
| 129 |
|
| 130 |
cascade etc/readme.man = etc/new.so ; |
| 131 |
|
| 132 |
%: etc/[downcase %].man: etc/groff.sh |
| 133 |
{ |
| 134 |
sh [resolve etc/groff.sh] -Tascii -t -P-bcu -man |
| 135 |
[addprefix "-I" [search_list]] |
| 136 |
[resolve etc/[downcase %].man] |
| 137 |
> [target]; |
| 138 |
} |
| 139 |
|
| 140 |
LICENSE: man/man1/fstrcmp_license.1 |
| 141 |
{ |
| 142 |
sh [resolve etc/groff.sh] -Tascii -t -P-bcu -man |
| 143 |
[addprefix "-I" [search_list]] |
| 144 |
[resolve man/man1/fstrcmp_license.1] |
| 145 |
> [target]; |
| 146 |
} |
| 147 |
|
| 148 |
etc/%.txt: etc/%.roff: etc/version.so |
| 149 |
{ |
| 150 |
sh [resolve etc/groff.sh] -Tascii -t -P-bcu |
| 151 |
[addprefix "-I" [search_list]] |
| 152 |
[resolve etc/%.roff] |
| 153 |
| cat -s |
| 154 |
> [target]; |
| 155 |
} |
| 156 |
|
| 157 |
all += etc/freshmeat.txt; |