/* * srecord - manipulate eprom load files * Copyright (C) 1998-2001, 2003, 2006, 2007 Peter Miller * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see * . */ all = [all] documentation; documentation: [fromto man/man%1/%2.%1 man/cat%1/%2.%1 [match_mask man/man%1/%2.%1 [source_files]] ] etc/reference.pdf ; /* Sigh */ cascade etc/srecord.html = etc/version.so(exists); man/cat%1/%2.%1: man/man%1/%2.%1 { roffpp [prepost "-I" "/man/man%1" [search_list]] [prepost "-I" "/etc" [search_list]] [resolve man/man%1/%2.%1] | groff -Tascii -t -P-c -man > [target]; } man/man%1/%2.%1.d: man/man%1/%2.%1 set no-cascade { [c_incl] -nc -ns -api -nrec --lang\=roff [prepost "-I" "/man/man%1" [search_list]] [prepost "-I" "/etc" [search_list]] [resolve man/man%1/%2.%1] -prefix "'cascade man/man%1/%2.%1 ='" -suffix "';'" [addprefix "-rlp=" [search_list]] -o [target]; } man/man%1/%2.%1,M:: man/man%1/%2.%1,Md; man/man%1/%2.%1,Md: man/man%1/%2.%1 { [c_incl] -nc -ns -api --lang\=roff [prepost "-I" "/man/man%1" [search_list]] [prepost "-I" "/etc" [search_list]] [resolve man/man%1/%2.%1] [addprefix "-rlp=" [search_list]] -o [target]; } man/man%1/%2.so.d: man/man%1/%2.so set no-cascade { [c_incl] -nc -ns -api -nrec --lang\=roff [prepost "-I" "/man/man%1" [search_list]] [prepost "-I" "/etc" [search_list]] [resolve man/man%1/%2.so] -prefix "'cascade man/man%1/%2.so ='" -suffix "';'" [addprefix "-rlp=" [search_list]] -o [target]; } etc/%.so.d: etc/%.so set no-cascade { [c_incl] -nc -ns -api -nrec --lang\=roff [prepost "-I" "/etc" [search_list]] [resolve etc/%.so] -prefix "'cascade etc/%.so ='" -suffix "';'" [addprefix "-rlp=" [search_list]] -o [target]; } #include-cooked [addsuffix ".d" [match_mask etc/%.man [source_files]]] #include-cooked [addsuffix ".d" [match_mask man/man%1/%2.%1 [source_files]]] #include-cooked [addsuffix ".d" [match_mask man/%0%.so [source_files]]] etc/%.pdf: etc/%.man etc/page-list.awk { roffpp [prepost "-I" /[arch]/etc [search_list]] [prepost "-I" "/etc" [search_list]] [prepost "-I" "/man/man1" [search_list]] /* refman */ [addprefix "-I" [search_list]] /* refman */ [resolve etc/%.man] > %.groff; groff -t -man %.groff > %.ps.tmp; rm %.groff set silent; psselect -p`awk -f [resolve etc/page-list.awk] %.ps.tmp` %.ps.tmp > %.ps; rm %.ps.tmp set silent; ps2pdf %.ps [target]; rm %.ps set silent; } cascade etc/reference.man = etc/ref-index.so etc/ref-parts.so; etc/ref-index.so: [match_mask man/man%1/%2.%1 [source_files]] etc/ref-ptx1.awk etc/ref-ptx.ignore etc/ref-ptx2.awk { [awk] -f [resolve etc/ref-ptx1.awk] [resolve [match_mask man/man%1/%2.%1 [source_files]]] | ptx -O -r -w1000 -i[resolve etc/ref-ptx.ignore] | sort -t'\'"\'' -f -d +5 -6 +3 -4 | [awk] -F'\'"\'' -f [resolve etc/ref-ptx2.awk] > [target]; } etc/ref-parts.so: [match_mask man/man%1/%2.%1 [source_files]] etc/ref-ptx.sh { sh -f [resolve etc/ref-ptx.sh] [match_mask man/man%1/%2.%1 [source_files]] > [target]; } #if [count [match_mask etc/new.%.so [source_files]]] etc/new.so: : etc/new.sh [match_mask etc/new.%.so [source_files]] { sh [resolve etc/new.sh] -r [fromto etc/new.%.so new.%.so [match_mask etc/new.%.so [need]] ] > [target]; } #include-cooked-nowarn etc/new.so.d #endif