| 1 |
### ==================================================================== |
| 2 |
### Makefile for BibTeX .bib file prettyprinter |
| 3 |
### |
| 4 |
### Current target list: (these include all GNU Project standard |
| 5 |
### targets) |
| 6 |
### |
| 7 |
### all build bibclean |
| 8 |
### bibclean executable for bibclean |
| 9 |
### bibclean.h documentation strings for help() |
| 10 |
### function |
| 11 |
### bibclean.hlp VAX VMS help file (automatically |
| 12 |
### converted from bibclean.txt) |
| 13 |
### bibclean.html HTML version of formatted manual pages |
| 14 |
### bibclean.i C preprocessor output from bibclean.c |
| 15 |
### bibclean.jar Java Jar distribution archive |
| 16 |
### bibclean.pdf Adobe Portable Document Format version |
| 17 |
### of bibclean.man |
| 18 |
### bibclean.ps PostScript version of bibclean.man |
| 19 |
### bibclean.tar tar archive file for ftp distribution |
| 20 |
### bibclean.txt nroff'ed bibclean.man manual page file |
| 21 |
### bibclean.zip Info-zip archive file for ftp |
| 22 |
### distribution |
| 23 |
### bibclean.zoo zoo archive file for ftp distribution |
| 24 |
### check same as test (see below) |
| 25 |
### clean clean up all but executables and time |
| 26 |
### stamps |
| 27 |
### clobber clean up everything |
| 28 |
### distclean remove everything make can rebuild at |
| 29 |
### remote site |
| 30 |
### docs make bibclean.txt, bibclean.hlp, and |
| 31 |
### bibclean.ps |
| 32 |
### install install executable and man pages |
| 33 |
### install.time internal target for install |
| 34 |
### install-exe install executable |
| 35 |
### install-man install man pages |
| 36 |
### install-ftp install .tar, .zip, and .zoo files in |
| 37 |
### ftp tree |
| 38 |
### install-ftp.time internal target for install-ftp |
| 39 |
### lint check for code problems |
| 40 |
### mostlyclean same as clean |
| 41 |
### maintainer-clean for program author only: remove |
| 42 |
### everything make can rebuild at |
| 43 |
### author's site |
| 44 |
### romtol build and run test program for romtol() |
| 45 |
### TAGS GNU Emacs tags file |
| 46 |
### test test bibclean on BibTeX and Scribe |
| 47 |
### bibliographies |
| 48 |
### test-bibtex test 1,2,3 bibclean on BibTeX |
| 49 |
### bibliographies |
| 50 |
### test-bibtex-1 test 1 bibclean on BibTeX bibliographies |
| 51 |
### test-bibtex-2 test 2 bibclean on BibTeX bibliographies |
| 52 |
### test-bibtex-3 test 3 ISBN and ISSN verification |
| 53 |
### test-scribe test 1,2,3 bibclean on Scribe |
| 54 |
### bibliographies |
| 55 |
### test-scribe-1 test 1 bibclean on Scribe bibliographies |
| 56 |
### test-scribe-2 test 2 bibclean on Scribe bibliographies |
| 57 |
### test-scribe-3 test 3 bibclean on Scribe bibliographies |
| 58 |
### test-version test extraction of version number |
| 59 |
### uninstall remove files installed by "make install" |
| 60 |
### uninstall-ftp remove installed files in anonymous ftp |
| 61 |
### directory |
| 62 |
### |
| 63 |
### [28-Feb-2016] -- major update for bibclean 3.00 and later |
| 64 |
### [28-Aug-2001] -- major update for bibclean 2.12 and later |
| 65 |
### [01-Jul-1996] -- add targets bibclean.pdf and DISTILL macro, and |
| 66 |
### update DIST-FILES list |
| 67 |
### [03-May-1996] -- add targets match, romtol, test-match, and |
| 68 |
### and test-romtol, and update DIST-FILES list for |
| 69 |
### version 2.11.3 release |
| 70 |
### [25-Apr-1996] -- add target for bibclean.html, with associated |
| 71 |
### support Makefile variables |
| 72 |
### [20-Sep-1995] -- revise to use GNU autoconf and configure |
| 73 |
### [08-Mar-1995] -- Change TARGET to TARGETS to avoid conflict with |
| 74 |
### built-in macro on Cray systems. Add -D_POSIX_SOURCE |
| 75 |
### to dec-alpha-osf1-c++ CC definition to work around |
| 76 |
### bug in C++ signal.h header file on OSF/1 3.x. |
| 77 |
### [21-Nov-1994] -- add cray-el94 target |
| 78 |
### [11-Nov-1994] -- add sun-sparc-solaris2-lcc and sun-sparc-sunos5-lcc |
| 79 |
### targets |
| 80 |
### [18-Oct-1994] -- add isbn.[co] to file lists |
| 81 |
### [16-Oct-1994] -- add strist.[co] to file lists |
| 82 |
### [04-Jun-1994] -- update for version 2.10 |
| 83 |
### add lint target |
| 84 |
### [31-Dec-1993] -- final polishing of Makefile for public release |
| 85 |
### after TUGboat publication |
| 86 |
### [24-Sep-1993] -- original version |
| 87 |
### ==================================================================== |
| 88 |
|
| 89 |
### -------------------------------------------------------------------- |
| 90 |
### Start of system configuration section. |
| 91 |
|
| 92 |
BIBCLEANNAME = bibclean |
| 93 |
|
| 94 |
prefix = /usr/uumath |
| 95 |
exec_prefix = ${prefix} |
| 96 |
|
| 97 |
bindir = ${exec_prefix}/bin |
| 98 |
srcdir = . |
| 99 |
|
| 100 |
datarootdir = ${prefix}/share |
| 101 |
datadir = ${datarootdir} |
| 102 |
bibcleandir = ${datadir}/${BIBCLEANNAME} |
| 103 |
initdir = ${bibcleandir}/${VERSION} |
| 104 |
|
| 105 |
### This is needed only at the developer's site: |
| 106 |
FTPDIR = /u/ftp/pub/tex/bib |
| 107 |
|
| 108 |
CC = gcc |
| 109 |
CFLAGS = -I${prefix}/include ${OPT} |
| 110 |
CPPFLAGS = -I${prefix}/include |
| 111 |
|
| 112 |
DEFS = -DINITDIR='"${initdir}"' ${XDEFS} -DHAVE_CONFIG_H |
| 113 |
|
| 114 |
LDFLAGS = -L/usr/uumath/lib64 -Wl,-rpath,/usr/uumath/lib64 ${OPT} |
| 115 |
LIBOBJS = |
| 116 |
LIBS = |
| 117 |
|
| 118 |
OPT = |
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
### Where to install the manual pages. |
| 123 |
mandir = ${prefix}/man/man1 |
| 124 |
### Extension (not including `.') for the installed manual page filenames. |
| 125 |
manext = 1 |
| 126 |
|
| 127 |
### End of system configuration section. |
| 128 |
### -------------------------------------------------------------------- |
| 129 |
|
| 130 |
AUTOCONF = autoconf |
| 131 |
|
| 132 |
AUTOHEADER = autoheader |
| 133 |
|
| 134 |
AWK = mawk |
| 135 |
|
| 136 |
BIBCLEAN = bibclean${EXEEXT} |
| 137 |
|
| 138 |
### This option is normally empty, but is used by the developer |
| 139 |
### to test whether new options affect output. |
| 140 |
BIBCLEANFLAGS = |
| 141 |
|
| 142 |
BIBISBN = bibisbn${EXEEXT} |
| 143 |
|
| 144 |
CHECK-BIBISBN = bibisbn1 bibisbn2 bibisbn3 bibisbn4 bibisbn5 bibisbn6 bibisbn7 |
| 145 |
|
| 146 |
BIBTEX = bibtex |
| 147 |
|
| 148 |
CAT = cat |
| 149 |
|
| 150 |
### The topt1* tests try all recognized options with a single leading dash, and |
| 151 |
### the topt3* tests are their companions with two leading dashes. However, we |
| 152 |
### intentionally EXCLUDE topt163 and topt363 because they hold -print-patterns |
| 153 |
### options whose output is site-dependent. We have no tests for |
| 154 |
### -trace-file-opening because that too is site-dependent, and also |
| 155 |
### user-dependent. |
| 156 |
|
| 157 |
CHECK-BIBTEX = testbib1 testbib2 testbib3 testbib4 testbib5 testbib6 \ |
| 158 |
testbib7 testbib8 testcodn testisxn testopt1 testopt2 \ |
| 159 |
testopt3 testopt4 testopt5 testopt6 testopt7 testopt8 \ |
| 160 |
testopt9 testopta testoptb testoptc testoptd testopte \ |
| 161 |
testoptf testoptg testopth testopti testoptj testoptk \ |
| 162 |
testoptl testoptm testoptn testopto testoptp testoptq \ |
| 163 |
testoptr testopts testoptt testoptu testoptv testoptw \ |
| 164 |
topt101 topt102 topt103 topt104 topt105 topt106 topt107 \ |
| 165 |
topt108 topt109 topt110 topt111 topt112 topt113 topt114 \ |
| 166 |
topt115 topt116 topt117 topt118 topt119 topt120 topt121 \ |
| 167 |
topt122 topt123 topt124 topt125 topt126 topt127 topt128 \ |
| 168 |
topt129 topt130 topt131 topt132 topt133 topt134 topt135 \ |
| 169 |
topt136 topt137 topt138 topt139 topt140 topt141 topt142 \ |
| 170 |
topt143 topt144 topt145 topt146 topt147 topt148 topt149 \ |
| 171 |
topt150 topt151 topt152 topt153 topt154 topt155 topt156 \ |
| 172 |
topt157 topt158 topt159 topt160 topt161 topt162 topt164 \ |
| 173 |
topt165 topt166 topt167 topt168 topt169 topt170 topt171 \ |
| 174 |
topt301 topt302 topt303 topt304 topt305 topt306 topt307 \ |
| 175 |
topt308 topt309 topt310 topt311 topt312 topt313 topt314 \ |
| 176 |
topt315 topt316 topt317 topt318 topt319 topt320 topt321 \ |
| 177 |
topt322 topt323 topt324 topt325 topt326 topt327 topt328 \ |
| 178 |
topt329 topt330 topt331 topt332 topt333 topt334 topt335 \ |
| 179 |
topt336 topt337 topt338 topt339 topt340 topt341 topt342 \ |
| 180 |
topt343 topt344 topt345 topt346 topt347 topt348 topt349 \ |
| 181 |
topt350 topt351 topt352 topt353 topt354 topt355 topt356 \ |
| 182 |
topt357 topt358 topt359 topt360 topt361 topt362 topt364 \ |
| 183 |
topt365 topt366 topt367 topt368 topt369 topt370 topt371 \ |
| 184 |
topt372 |
| 185 |
|
| 186 |
CHECK-LATEX = testltx1.ltx |
| 187 |
|
| 188 |
CHECK-MATCH = match.in |
| 189 |
|
| 190 |
CHECK-ROMTOL = romtol.in |
| 191 |
|
| 192 |
CHECK-SCRIBE = testscr1.bib testscr2.bib testscr3.bib testscr4.bib |
| 193 |
|
| 194 |
### This program is freely available at ftp://ftp.math.utah.edu/pub/checksum/ |
| 195 |
CHECKSUM = checksum |
| 196 |
|
| 197 |
CHMOD = chmod |
| 198 |
|
| 199 |
CMP = cmp |
| 200 |
|
| 201 |
CP = scp -p |
| 202 |
CPFLAGS = -p |
| 203 |
|
| 204 |
CUT = cut |
| 205 |
|
| 206 |
DATE = date |
| 207 |
|
| 208 |
DIFF = diff |
| 209 |
|
| 210 |
DIST-FILES = ChangeLog COPYING README Makefile.in bibclean.c bibclean.h \ |
| 211 |
bibclean.hlp bibclean.html bibclean.ini bibclean.isbn \ |
| 212 |
bibclean.key bibclean.man bibclean.pdf bibclean.ps \ |
| 213 |
bibclean.reg bibclean.txt build-all.sh ch.h chek.c \ |
| 214 |
config.hin configure configure.ac configure.sed custom.h \ |
| 215 |
delete.h do.c dbx-test.run fix.c fndfil.c isbn.c isbn.h \ |
| 216 |
isbn.tbl isbn-el-to-bibclean-isbn.awk keybrd.c keybrd.h \ |
| 217 |
match.c match.dat match.h option.c pattern.h rofvms.awk \ |
| 218 |
romtol.c romtol.dat strist.c strtol.c token.h toklst.h \ |
| 219 |
tstctype.c typedefs.h vaxvms.c vmswild.c xctype.h xerrno.h \ |
| 220 |
xlimits.h xpwd.h xstat.h xstdbool.h xstdio.h xstdlib.h \ |
| 221 |
xstring.h xtypes.h xunistd.h yesorno.h testscr2.bo2 \ |
| 222 |
testscr2.eo2 ${FILES-DOC} ${FILES-IBMPC} ${FILES-SAVE} \ |
| 223 |
${FILES-TEST} test/plain.bst ${FILES-VMS} ${FILES-WINDOWS} |
| 224 |
|
| 225 |
DISTILL = ps2pdf |
| 226 |
|
| 227 |
DITROFF = groff |
| 228 |
|
| 229 |
ETAGS = etags |
| 230 |
|
| 231 |
EXEEXT = |
| 232 |
|
| 233 |
EXPR = expr |
| 234 |
|
| 235 |
### On UNIX systems, the FILES-xxx lists could be generated by `find xxx |
| 236 |
### -type f | sort`, but explicit enumeration eases portability to other |
| 237 |
### operating systems, and ensures that we do not accidentally include |
| 238 |
### unwanted temporary files that might be present. |
| 239 |
FILES-DOC = doc/Makefile doc/bibclean.aux doc/bibclean.bbl \ |
| 240 |
doc/bibclean.bib doc/bibclean.blg doc/bibclean.dvi \ |
| 241 |
doc/bibclean.idw doc/bibclean.idx doc/bibclean.ilg \ |
| 242 |
doc/bibclean.ind doc/bibclean.log doc/bibclean.lot \ |
| 243 |
doc/bibclean.ltx doc/bibclean.pdf doc/bibclean.ps \ |
| 244 |
doc/bibclean.sok doc/bibclean.sty doc/bibclean.toc \ |
| 245 |
doc/is-plain.bst doc/ltugboat.sty doc/path.sty \ |
| 246 |
doc/texnames.sty doc/tugboat.cmn |
| 247 |
|
| 248 |
FILES-IBMPC = ibmpc/dos/README ibmpc/dos/msc5p1/bibclean.exe \ |
| 249 |
ibmpc/dos/msc5p1/config.h ibmpc/dos/msc5p1/ibmclean.bat \ |
| 250 |
ibmpc/dos/msc5p1/ibmtest.bat ibmpc/dos/msc5p1/msc51bld.bat \ |
| 251 |
ibmpc/dos/msc5p1/msc51pth.bat ibmpc/dos/msc6p0/bibclean.exe \ |
| 252 |
ibmpc/dos/msc6p0/bibclean.map ibmpc/dos/msc6p0/config.h \ |
| 253 |
ibmpc/dos/msc6p0/ibmclean.bat ibmpc/dos/msc6p0/ibmtest.bat \ |
| 254 |
ibmpc/dos/msc6p0/msc60bld.bat ibmpc/dos/msc6p0/msc60pth.bat \ |
| 255 |
ibmpc/dos/msc7p0/config.h ibmpc/dos/msc7p0/ibmclean.bat \ |
| 256 |
ibmpc/dos/msc7p0/ibmtest.bat ibmpc/dos/msc7p0/msc70bld.bat \ |
| 257 |
ibmpc/dos/msc7p0/msc70pth.bat ibmpc/dos/tcc2p0/bibclean.exe \ |
| 258 |
ibmpc/dos/tcc2p0/config.h ibmpc/dos/tcc2p0/ibmclean.bat \ |
| 259 |
ibmpc/dos/tcc2p0/ibmtest.bat ibmpc/dos/tcc2p0/tcc20bld.bat \ |
| 260 |
ibmpc/dos/tcc2p0/tcc20pth.bat ibmpc/dos/tcc3p0/bibclean.exe \ |
| 261 |
ibmpc/dos/tcc3p0/config.h ibmpc/dos/tcc3p0/ibmclean.bat \ |
| 262 |
ibmpc/dos/tcc3p0/ibmtest.bat ibmpc/dos/tcc3p0/tcc30bld.bat \ |
| 263 |
ibmpc/dos/tcc3p0/tcc30pth.bat ibmpc/dos/tpp3p0/bibclean.exe \ |
| 264 |
ibmpc/dos/tpp3p0/config.h ibmpc/dos/tpp3p0/ibmclean.bat \ |
| 265 |
ibmpc/dos/tpp3p0/ibmtest.bat ibmpc/dos/tpp3p0/tcc30pth.bat \ |
| 266 |
ibmpc/dos/tpp3p0/tpp30bld.bat \ |
| 267 |
ibmpc/dos/wat10/wcc/bibclean.exe \ |
| 268 |
ibmpc/dos/wat10/wcc/bibclean.map \ |
| 269 |
ibmpc/dos/wat10/wcc/config.h \ |
| 270 |
ibmpc/dos/wat10/wcc/ibmclean.bat \ |
| 271 |
ibmpc/dos/wat10/wcc/ibmtest.bat \ |
| 272 |
ibmpc/dos/wat10/wcc/watcpp.bat \ |
| 273 |
ibmpc/dos/wat10/wcc/watpath.bat \ |
| 274 |
ibmpc/dos/wat10/wcc/watwcc.bat \ |
| 275 |
ibmpc/dos/wat10/wcc386/bibclean.exe \ |
| 276 |
ibmpc/dos/wat10/wcc386/config.h \ |
| 277 |
ibmpc/dos/wat10/wcc386/dos4gw.doc \ |
| 278 |
ibmpc/dos/wat10/wcc386/dos4gw.exe \ |
| 279 |
ibmpc/dos/wat10/wcc386/ibmclean.bat \ |
| 280 |
ibmpc/dos/wat10/wcc386/ibmtest.bat \ |
| 281 |
ibmpc/dos/wat10/wcc386/wat10bld.bat \ |
| 282 |
ibmpc/dos/wat10/wcc386/watpath.bat \ |
| 283 |
ibmpc/dos/wat10/wpp386/bibclean.exe \ |
| 284 |
ibmpc/dos/wat10/wpp386/config.h \ |
| 285 |
ibmpc/dos/wat10/wpp386/dos4gw.doc \ |
| 286 |
ibmpc/dos/wat10/wpp386/dos4gw.exe \ |
| 287 |
ibmpc/dos/wat10/wpp386/ibmclean.bat \ |
| 288 |
ibmpc/dos/wat10/wpp386/ibmtest.bat \ |
| 289 |
ibmpc/dos/wat10/wpp386/w386cpp.bat \ |
| 290 |
ibmpc/dos/wat10/wpp386/watpath.bat ibmpc/linux/bibclean |
| 291 |
|
| 292 |
FILES-SAVE = save/Makefile save/config.h save/config.hin save/configure \ |
| 293 |
save/custom.h |
| 294 |
|
| 295 |
FILES-TEST = test/match.in test/okay/match.err test/okay/match.out \ |
| 296 |
test/okay/romtol.err test/okay/romtol.out \ |
| 297 |
test/okay/testbib1.err test/okay/testbib1.out \ |
| 298 |
test/okay/testbib2.err test/okay/testbib2.out \ |
| 299 |
test/okay/testbib3.err test/okay/testbib3.out \ |
| 300 |
test/okay/testbib4.err test/okay/testbib4.out \ |
| 301 |
test/okay/testbib5.err test/okay/testbib5.out \ |
| 302 |
test/okay/testbib6.err test/okay/testbib6.out \ |
| 303 |
test/okay/testbib7.err test/okay/testbib7.out \ |
| 304 |
test/okay/testbib8.err test/okay/testbib8.out \ |
| 305 |
test/okay/testcodn.err test/okay/testcodn.out \ |
| 306 |
test/okay/testisxn.err test/okay/testisxn.out \ |
| 307 |
test/okay/testltx1.bbl test/okay/testltx1.blg \ |
| 308 |
test/okay/testltx1.err test/okay/testltx1.out \ |
| 309 |
test/okay/testopt1.err test/okay/testopt1.out \ |
| 310 |
test/okay/testopt2.err test/okay/testopt2.out \ |
| 311 |
test/okay/testopt3.err test/okay/testopt3.out \ |
| 312 |
test/okay/testopt4.err test/okay/testopt4.out \ |
| 313 |
test/okay/testopt5.err test/okay/testopt5.out \ |
| 314 |
test/okay/testopt6.err test/okay/testopt6.out \ |
| 315 |
test/okay/testopt7.err test/okay/testopt7.out \ |
| 316 |
test/okay/testopt8.err test/okay/testopt8.out \ |
| 317 |
test/okay/testopt9.err test/okay/testopt9.out \ |
| 318 |
test/okay/testopta.err test/okay/testopta.out \ |
| 319 |
test/okay/testoptb.err test/okay/testoptb.out \ |
| 320 |
test/okay/testoptc.err test/okay/testoptc.out \ |
| 321 |
test/okay/testoptd.err test/okay/testoptd.out \ |
| 322 |
test/okay/testopte.err test/okay/testopte.out \ |
| 323 |
test/okay/testoptf.err test/okay/testoptf.out \ |
| 324 |
test/okay/testoptg.err test/okay/testoptg.out \ |
| 325 |
test/okay/testopth.err test/okay/testopth.out \ |
| 326 |
test/okay/testopti.err test/okay/testopti.out \ |
| 327 |
test/okay/testoptj.err test/okay/testoptj.out \ |
| 328 |
test/okay/testoptk.err test/okay/testoptk.out \ |
| 329 |
test/okay/testoptl.err test/okay/testoptl.out \ |
| 330 |
test/okay/testoptm.err test/okay/testoptm.out \ |
| 331 |
test/okay/testoptn.err test/okay/testoptn.out \ |
| 332 |
test/okay/testopto.err test/okay/testopto.out \ |
| 333 |
test/okay/testoptp.err test/okay/testoptp.out \ |
| 334 |
test/okay/testoptq.err test/okay/testoptq.out \ |
| 335 |
test/okay/testoptr.err test/okay/testoptr.out \ |
| 336 |
test/okay/testopts.err test/okay/testopts.out \ |
| 337 |
test/okay/testoptt.err test/okay/testoptt.out \ |
| 338 |
test/okay/testoptu.err test/okay/testoptu.out \ |
| 339 |
test/okay/testoptu.win test/okay/testoptv.err \ |
| 340 |
test/okay/testoptv.out test/okay/testoptw.err \ |
| 341 |
test/okay/testoptw.out test/okay/testoptx.err \ |
| 342 |
test/okay/testoptx.out test/okay/testscr1.bbl \ |
| 343 |
test/okay/testscr1.blg test/okay/testscr1.err \ |
| 344 |
test/okay/testscr1.out test/okay/testscr2.bbl \ |
| 345 |
test/okay/testscr2.blg test/okay/testscr2.err \ |
| 346 |
test/okay/testscr2.out test/okay/testscr3.bbl \ |
| 347 |
test/okay/testscr3.blg test/okay/testscr3.err \ |
| 348 |
test/okay/testscr3.out test/okay/testscr4.bbl \ |
| 349 |
test/okay/testscr4.blg test/okay/testscr4.err \ |
| 350 |
test/okay/testscr4.out test/okay/topt101.err \ |
| 351 |
test/okay/topt101.out test/okay/topt102.err \ |
| 352 |
test/okay/topt102.out test/okay/topt103.err \ |
| 353 |
test/okay/topt103.out test/okay/topt104.err \ |
| 354 |
test/okay/topt104.out test/okay/topt105.err \ |
| 355 |
test/okay/topt105.out test/okay/topt106.err \ |
| 356 |
test/okay/topt106.out test/okay/topt107.err \ |
| 357 |
test/okay/topt107.out test/okay/topt108.err \ |
| 358 |
test/okay/topt108.out test/okay/topt109.err \ |
| 359 |
test/okay/topt109.out test/okay/topt110.err \ |
| 360 |
test/okay/topt110.out test/okay/topt111.err \ |
| 361 |
test/okay/topt111.out test/okay/topt112.err \ |
| 362 |
test/okay/topt112.out test/okay/topt113.err \ |
| 363 |
test/okay/topt113.out test/okay/topt114.err \ |
| 364 |
test/okay/topt114.out test/okay/topt115.err \ |
| 365 |
test/okay/topt115.out test/okay/topt116.err \ |
| 366 |
test/okay/topt116.out test/okay/topt117.err \ |
| 367 |
test/okay/topt117.out test/okay/topt118.err \ |
| 368 |
test/okay/topt118.out test/okay/topt119.err \ |
| 369 |
test/okay/topt119.out test/okay/topt120.err \ |
| 370 |
test/okay/topt120.out test/okay/topt121.err \ |
| 371 |
test/okay/topt121.out test/okay/topt122.err \ |
| 372 |
test/okay/topt122.out test/okay/topt123.err \ |
| 373 |
test/okay/topt123.out test/okay/topt124.err \ |
| 374 |
test/okay/topt124.out test/okay/topt125.err \ |
| 375 |
test/okay/topt125.out test/okay/topt126.err \ |
| 376 |
test/okay/topt126.out test/okay/topt127.err \ |
| 377 |
test/okay/topt127.out test/okay/topt128.err \ |
| 378 |
test/okay/topt128.out test/okay/topt129.err \ |
| 379 |
test/okay/topt129.out test/okay/topt130.err \ |
| 380 |
test/okay/topt130.out test/okay/topt131.err \ |
| 381 |
test/okay/topt131.out test/okay/topt132.err \ |
| 382 |
test/okay/topt132.out test/okay/topt133.err \ |
| 383 |
test/okay/topt133.out test/okay/topt134.err \ |
| 384 |
test/okay/topt134.out test/okay/topt135.err \ |
| 385 |
test/okay/topt135.out test/okay/topt136.err \ |
| 386 |
test/okay/topt136.out test/okay/topt137.err \ |
| 387 |
test/okay/topt137.out test/okay/topt138.err \ |
| 388 |
test/okay/topt138.out test/okay/topt139.err \ |
| 389 |
test/okay/topt139.out test/okay/topt140.err \ |
| 390 |
test/okay/topt140.out test/okay/topt141.err \ |
| 391 |
test/okay/topt141.out test/okay/topt142.err \ |
| 392 |
test/okay/topt142.out test/okay/topt143.err \ |
| 393 |
test/okay/topt143.out test/okay/topt144.err \ |
| 394 |
test/okay/topt144.out test/okay/topt145.err \ |
| 395 |
test/okay/topt145.out test/okay/topt146.err \ |
| 396 |
test/okay/topt146.out test/okay/topt147.err \ |
| 397 |
test/okay/topt147.out test/okay/topt148.err \ |
| 398 |
test/okay/topt148.out test/okay/topt149.err \ |
| 399 |
test/okay/topt149.out test/okay/topt150.err \ |
| 400 |
test/okay/topt150.out test/okay/topt151.err \ |
| 401 |
test/okay/topt151.out test/okay/topt152.err \ |
| 402 |
test/okay/topt152.out test/okay/topt153.err \ |
| 403 |
test/okay/topt153.out test/okay/topt154.err \ |
| 404 |
test/okay/topt154.out test/okay/topt155.err \ |
| 405 |
test/okay/topt155.out test/okay/topt156.err \ |
| 406 |
test/okay/topt156.out test/okay/topt157.err \ |
| 407 |
test/okay/topt157.out test/okay/topt158.err \ |
| 408 |
test/okay/topt158.out test/okay/topt159.err \ |
| 409 |
test/okay/topt159.out test/okay/topt160.err \ |
| 410 |
test/okay/topt160.out test/okay/topt161.err \ |
| 411 |
test/okay/topt161.out test/okay/topt162.err \ |
| 412 |
test/okay/topt162.out test/okay/topt163.err \ |
| 413 |
test/okay/topt163.out test/okay/topt164.err \ |
| 414 |
test/okay/topt164.out test/okay/topt165.err \ |
| 415 |
test/okay/topt165.out test/okay/topt166.err \ |
| 416 |
test/okay/topt166.out test/okay/topt167.err \ |
| 417 |
test/okay/topt167.out test/okay/topt168.err \ |
| 418 |
test/okay/topt168.out test/okay/topt169.err \ |
| 419 |
test/okay/topt169.out test/okay/topt170.err \ |
| 420 |
test/okay/topt170.out test/okay/topt171.err \ |
| 421 |
test/okay/topt171.out test/okay/topt301.err \ |
| 422 |
test/okay/topt301.out test/okay/topt302.err \ |
| 423 |
test/okay/topt302.out test/okay/topt303.err \ |
| 424 |
test/okay/topt303.out test/okay/topt304.err \ |
| 425 |
test/okay/topt304.out test/okay/topt305.err \ |
| 426 |
test/okay/topt305.out test/okay/topt306.err \ |
| 427 |
test/okay/topt306.out test/okay/topt307.err \ |
| 428 |
test/okay/topt307.out test/okay/topt308.err \ |
| 429 |
test/okay/topt308.out test/okay/topt309.err \ |
| 430 |
test/okay/topt309.out test/okay/topt310.err \ |
| 431 |
test/okay/topt310.out test/okay/topt311.err \ |
| 432 |
test/okay/topt311.out test/okay/topt312.err \ |
| 433 |
test/okay/topt312.out test/okay/topt313.err \ |
| 434 |
test/okay/topt313.out test/okay/topt314.err \ |
| 435 |
test/okay/topt314.out test/okay/topt315.err \ |
| 436 |
test/okay/topt315.out test/okay/topt316.err \ |
| 437 |
test/okay/topt316.out test/okay/topt317.err \ |
| 438 |
test/okay/topt317.out test/okay/topt318.err \ |
| 439 |
test/okay/topt318.out test/okay/topt319.err \ |
| 440 |
test/okay/topt319.out test/okay/topt320.err \ |
| 441 |
test/okay/topt320.out test/okay/topt321.err \ |
| 442 |
test/okay/topt321.out test/okay/topt322.err \ |
| 443 |
test/okay/topt322.out test/okay/topt323.err \ |
| 444 |
test/okay/topt323.out test/okay/topt324.err \ |
| 445 |
test/okay/topt324.out test/okay/topt325.err \ |
| 446 |
test/okay/topt325.out test/okay/topt326.err \ |
| 447 |
test/okay/topt326.out test/okay/topt327.err \ |
| 448 |
test/okay/topt327.out test/okay/topt328.err \ |
| 449 |
test/okay/topt328.out test/okay/topt329.err \ |
| 450 |
test/okay/topt329.out test/okay/topt330.err \ |
| 451 |
test/okay/topt330.out test/okay/topt331.err \ |
| 452 |
test/okay/topt331.out test/okay/topt332.err \ |
| 453 |
test/okay/topt332.out test/okay/topt333.err \ |
| 454 |
test/okay/topt333.out test/okay/topt334.err \ |
| 455 |
test/okay/topt334.out test/okay/topt335.err \ |
| 456 |
test/okay/topt335.out test/okay/topt336.err \ |
| 457 |
test/okay/topt336.out test/okay/topt337.err \ |
| 458 |
test/okay/topt337.out test/okay/topt338.err \ |
| 459 |
test/okay/topt338.out test/okay/topt339.err \ |
| 460 |
test/okay/topt339.out test/okay/topt340.err \ |
| 461 |
test/okay/topt340.out test/okay/topt341.err \ |
| 462 |
test/okay/topt341.out test/okay/topt342.err \ |
| 463 |
test/okay/topt342.out test/okay/topt343.err \ |
| 464 |
test/okay/topt343.out test/okay/topt344.err \ |
| 465 |
test/okay/topt344.out test/okay/topt345.err \ |
| 466 |
test/okay/topt345.out test/okay/topt346.err \ |
| 467 |
test/okay/topt346.out test/okay/topt347.err \ |
| 468 |
test/okay/topt347.out test/okay/topt348.err \ |
| 469 |
test/okay/topt348.out test/okay/topt349.err \ |
| 470 |
test/okay/topt349.out test/okay/topt350.err \ |
| 471 |
test/okay/topt350.out test/okay/topt351.err \ |
| 472 |
test/okay/topt351.out test/okay/topt352.err \ |
| 473 |
test/okay/topt352.out test/okay/topt353.err \ |
| 474 |
test/okay/topt353.out test/okay/topt354.err \ |
| 475 |
test/okay/topt354.out test/okay/topt355.err \ |
| 476 |
test/okay/topt355.out test/okay/topt356.err \ |
| 477 |
test/okay/topt356.out test/okay/topt357.err \ |
| 478 |
test/okay/topt357.out test/okay/topt358.err \ |
| 479 |
test/okay/topt358.out test/okay/topt359.err \ |
| 480 |
test/okay/topt359.out test/okay/topt360.err \ |
| 481 |
test/okay/topt360.out test/okay/topt361.err \ |
| 482 |
test/okay/topt361.out test/okay/topt362.err \ |
| 483 |
test/okay/topt362.out test/okay/topt363.err \ |
| 484 |
test/okay/topt363.out test/okay/topt364.err \ |
| 485 |
test/okay/topt364.out test/okay/topt365.err \ |
| 486 |
test/okay/topt365.out test/okay/topt366.err \ |
| 487 |
test/okay/topt366.out test/okay/topt367.err \ |
| 488 |
test/okay/topt367.out test/okay/topt368.err \ |
| 489 |
test/okay/topt368.out test/okay/topt369.err \ |
| 490 |
test/okay/topt369.out test/okay/topt370.err \ |
| 491 |
test/okay/topt370.out test/okay/topt371.err \ |
| 492 |
test/okay/topt371.out test/okay/tstctype.out test/romtol.in \ |
| 493 |
test/testbib1.bib test/testbib1.opt test/testbib2.bib \ |
| 494 |
test/testbib2.opt test/testbib3.bib test/testbib3.opt \ |
| 495 |
test/testbib4.bib test/testbib4.opt test/testbib5.bib \ |
| 496 |
test/testbib5.opt test/testbib6.bib test/testbib6.opt \ |
| 497 |
test/testbib7.bib test/testbib7.opt test/testbib8.bib \ |
| 498 |
test/testbib8.opt test/testcodn.bib test/testcodn.opt \ |
| 499 |
test/testisxn.bib test/testisxn.opt test/testltx1.bin \ |
| 500 |
test/testltx1.ltx test/testltx1.opt test/testopt1.bib \ |
| 501 |
test/testopt1.opt test/testopt2.bib test/testopt2.opt \ |
| 502 |
test/testopt3.bib test/testopt3.opt test/testopt4.bib \ |
| 503 |
test/testopt4.opt test/testopt5.bib test/testopt5.opt \ |
| 504 |
test/testopt6.bib test/testopt6.opt test/testopt7.bib \ |
| 505 |
test/testopt7.opt test/testopt8.bib test/testopt8.opt \ |
| 506 |
test/testopt9.bib test/testopt9.opt test/testopta.bib \ |
| 507 |
test/testopta.opt test/testoptb.bib test/testoptb.opt \ |
| 508 |
test/testoptc.bib test/testoptc.opt test/testoptd.bib \ |
| 509 |
test/testoptd.opt test/testopte.bib test/testopte.opt \ |
| 510 |
test/testoptf.bib test/testoptf.opt test/testoptg.bib \ |
| 511 |
test/testoptg.opt test/testopth.bib test/testopth.opt \ |
| 512 |
test/testopti.bib test/testopti.opt test/testoptj.bib \ |
| 513 |
test/testoptj.opt test/testoptk.bib test/testoptk.opt \ |
| 514 |
test/testoptl.bib test/testoptl.opt test/testoptm.bib \ |
| 515 |
test/testoptm.opt test/testoptn.bib test/testoptn.opt \ |
| 516 |
test/testopto.bib test/testopto.opt test/testoptp.bib \ |
| 517 |
test/testoptp.opt test/testoptq.bib test/testoptq.opt \ |
| 518 |
test/testoptr.bib test/testoptr.opt test/testopts.bib \ |
| 519 |
test/testopts.opt test/testoptt.bib test/testoptt.opt \ |
| 520 |
test/testoptu.bib test/testoptu.opt test/testoptv.bib \ |
| 521 |
test/testoptv.opt test/testoptw.bib test/testoptw.opt \ |
| 522 |
test/testoptx.in test/testoptx.opt test/testscr1.bib \ |
| 523 |
test/testscr1.opt test/testscr2.bib test/testscr2.opt \ |
| 524 |
test/testscr3.bib test/testscr3.opt test/testscr4.bib \ |
| 525 |
test/testscr4.opt test/topt101.bib test/topt101.opt \ |
| 526 |
test/topt102.bib test/topt102.opt test/topt103.bib \ |
| 527 |
test/topt103.opt test/topt104.bib test/topt104.opt \ |
| 528 |
test/topt105.bib test/topt105.opt test/topt106.bib \ |
| 529 |
test/topt106.opt test/topt107.bib test/topt107.opt \ |
| 530 |
test/topt108.bib test/topt108.opt test/topt109.bib \ |
| 531 |
test/topt109.opt test/topt110.bib test/topt110.opt \ |
| 532 |
test/topt111.bib test/topt111.opt test/topt112.bib \ |
| 533 |
test/topt112.opt test/topt113.bib test/topt113.opt \ |
| 534 |
test/topt114.bib test/topt114.opt test/topt115.bib \ |
| 535 |
test/topt115.opt test/topt116.bib test/topt116.opt \ |
| 536 |
test/topt117.bib test/topt117.opt test/topt118.bib \ |
| 537 |
test/topt118.opt test/topt119.bib test/topt119.opt \ |
| 538 |
test/topt120.bib test/topt120.opt test/topt121.bib \ |
| 539 |
test/topt121.opt test/topt122.bib test/topt122.opt \ |
| 540 |
test/topt123.bib test/topt123.opt test/topt124.bib \ |
| 541 |
test/topt124.opt test/topt125.bib test/topt125.opt \ |
| 542 |
test/topt126.bib test/topt126.opt test/topt127.bib \ |
| 543 |
test/topt127.opt test/topt128.bib test/topt128.opt \ |
| 544 |
test/topt129.bib test/topt129.opt test/topt130.bib \ |
| 545 |
test/topt130.opt test/topt131.bib test/topt131.opt \ |
| 546 |
test/topt132.bib test/topt132.opt test/topt133.bib \ |
| 547 |
test/topt133.opt test/topt134.bib test/topt134.opt \ |
| 548 |
test/topt135.bib test/topt135.opt test/topt136.bib \ |
| 549 |
test/topt136.opt test/topt137.bib test/topt137.opt \ |
| 550 |
test/topt138.bib test/topt138.opt test/topt139.bib \ |
| 551 |
test/topt139.opt test/topt140.bib test/topt140.opt \ |
| 552 |
test/topt141.bib test/topt141.opt test/topt142.bib \ |
| 553 |
test/topt142.opt test/topt143.bib test/topt143.opt \ |
| 554 |
test/topt144.bib test/topt144.opt test/topt145.bib \ |
| 555 |
test/topt145.opt test/topt146.bib test/topt146.opt \ |
| 556 |
test/topt147.bib test/topt147.opt test/topt148.bib \ |
| 557 |
test/topt148.opt test/topt149.bib test/topt149.opt \ |
| 558 |
test/topt150.bib test/topt150.opt test/topt151.bib \ |
| 559 |
test/topt151.opt test/topt152.bib test/topt152.opt \ |
| 560 |
test/topt153.bib test/topt153.opt test/topt154.bib \ |
| 561 |
test/topt154.opt test/topt155.bib test/topt155.opt \ |
| 562 |
test/topt156.bib test/topt156.opt test/topt157.bib \ |
| 563 |
test/topt157.opt test/topt158.bib test/topt158.opt \ |
| 564 |
test/topt159.bib test/topt159.opt test/topt160.bib \ |
| 565 |
test/topt160.opt test/topt161.bib test/topt161.opt \ |
| 566 |
test/topt162.bib test/topt162.opt test/topt163.bib \ |
| 567 |
test/topt163.opt test/topt164.bib test/topt164.opt \ |
| 568 |
test/topt165.bib test/topt165.opt test/topt166.bib \ |
| 569 |
test/topt166.opt test/topt167.bib test/topt167.opt \ |
| 570 |
test/topt168.bib test/topt168.opt test/topt169.bib \ |
| 571 |
test/topt169.opt test/topt170.bib test/topt170.opt \ |
| 572 |
test/topt171.bib test/topt171.opt test/topt301.bib \ |
| 573 |
test/topt301.opt test/topt302.bib test/topt302.opt \ |
| 574 |
test/topt303.bib test/topt303.opt test/topt304.bib \ |
| 575 |
test/topt304.opt test/topt305.bib test/topt305.opt \ |
| 576 |
test/topt306.bib test/topt306.opt test/topt307.bib \ |
| 577 |
test/topt307.opt test/topt308.bib test/topt308.opt \ |
| 578 |
test/topt309.bib test/topt309.opt test/topt310.bib \ |
| 579 |
test/topt310.opt test/topt311.bib test/topt311.opt \ |
| 580 |
test/topt312.bib test/topt312.opt test/topt313.bib \ |
| 581 |
test/topt313.opt test/topt314.bib test/topt314.opt \ |
| 582 |
test/topt315.bib test/topt315.opt test/topt316.bib \ |
| 583 |
test/topt316.opt test/topt317.bib test/topt317.opt \ |
| 584 |
test/topt318.bib test/topt318.opt test/topt319.bib \ |
| 585 |
test/topt319.opt test/topt320.bib test/topt320.opt \ |
| 586 |
test/topt321.bib test/topt321.opt test/topt322.bib \ |
| 587 |
test/topt322.opt test/topt323.bib test/topt323.opt \ |
| 588 |
test/topt324.bib test/topt324.opt test/topt325.bib \ |
| 589 |
test/topt325.opt test/topt326.bib test/topt326.opt \ |
| 590 |
test/topt327.bib test/topt327.opt test/topt328.bib \ |
| 591 |
test/topt328.opt test/topt329.bib test/topt329.opt \ |
| 592 |
test/topt330.bib test/topt330.opt test/topt331.bib \ |
| 593 |
test/topt331.opt test/topt332.bib test/topt332.opt \ |
| 594 |
test/topt333.bib test/topt333.opt test/topt334.bib \ |
| 595 |
test/topt334.opt test/topt335.bib test/topt335.opt \ |
| 596 |
test/topt336.bib test/topt336.opt test/topt337.bib \ |
| 597 |
test/topt337.opt test/topt338.bib test/topt338.opt \ |
| 598 |
test/topt339.bib test/topt339.opt test/topt340.bib \ |
| 599 |
test/topt340.opt test/topt341.bib test/topt341.opt \ |
| 600 |
test/topt342.bib test/topt342.opt test/topt343.bib \ |
| 601 |
test/topt343.opt test/topt344.bib test/topt344.opt \ |
| 602 |
test/topt345.bib test/topt345.opt test/topt346.bib \ |
| 603 |
test/topt346.opt test/topt347.bib test/topt347.opt \ |
| 604 |
test/topt348.bib test/topt348.opt test/topt349.bib \ |
| 605 |
test/topt349.opt test/topt350.bib test/topt350.opt \ |
| 606 |
test/topt351.bib test/topt351.opt test/topt352.bib \ |
| 607 |
test/topt352.opt test/topt353.bib test/topt353.opt \ |
| 608 |
test/topt354.bib test/topt354.opt test/topt355.bib \ |
| 609 |
test/topt355.opt test/topt356.bib test/topt356.opt \ |
| 610 |
test/topt357.bib test/topt357.opt test/topt358.bib \ |
| 611 |
test/topt358.opt test/topt359.bib test/topt359.opt \ |
| 612 |
test/topt360.bib test/topt360.opt test/topt361.bib \ |
| 613 |
test/topt361.opt test/topt362.bib test/topt362.opt \ |
| 614 |
test/topt363.bib test/topt363.opt test/topt364.bib \ |
| 615 |
test/topt364.opt test/topt365.bib test/topt365.opt \ |
| 616 |
test/topt366.bib test/topt366.opt test/topt367.bib \ |
| 617 |
test/topt367.opt test/topt368.bib test/topt368.opt \ |
| 618 |
test/topt369.bib test/topt369.opt test/topt370.bib \ |
| 619 |
test/topt370.opt test/topt371.bib test/topt371.opt |
| 620 |
|
| 621 |
FILES-VMS = vms/config.h vms/alpha/bibclean.exe vms/alpha/recomp.com \ |
| 622 |
vms/alpha/vmsclean.com vms/alpha/vmsmake.com \ |
| 623 |
vms/alpha/vmstest.com vms/vax/README vms/vax/bibclean.exe \ |
| 624 |
vms/vax/bibclean.obj vms/vax/chek.obj vms/vax/config.h \ |
| 625 |
vms/vax/do.obj vms/vax/fix.obj vms/vax/fndfil.obj \ |
| 626 |
vms/vax/getoneheader.com vms/vax/getvmsheaders.com \ |
| 627 |
vms/vax/isbn.obj vms/vax/keybrd.obj vms/vax/match.obj \ |
| 628 |
vms/vax/option.obj vms/vax/recomp.com vms/vax/romtol.obj \ |
| 629 |
vms/vax/strist.obj vms/vax/vaxvms.obj vms/vax/vmsclean.com \ |
| 630 |
vms/vax/vmsmake.com vms/vax/vmstest.com vms/vax/vmswild.obj |
| 631 |
|
| 632 |
FILES-WINDOWS = win32/bibclean.exe |
| 633 |
|
| 634 |
FIXBLG = ${SED} -e "/^You've used/,/^write/d" -e "/^This is BibTeX/,/^Database file/d" |
| 635 |
|
| 636 |
GREP = egrep |
| 637 |
|
| 638 |
GZIP = gzip |
| 639 |
|
| 640 |
### Some systems define HOST or HOSTNAME, but others don't, so we |
| 641 |
### generate it at compile time with the hostname utility. |
| 642 |
HOST = `hostname` |
| 643 |
|
| 644 |
### This program is freely available at ftp://ftp.math.utah.edu/pub/sgml/sp-* |
| 645 |
HTMLNCHECK = echo |
| 646 |
|
| 647 |
### This program is freely available at ftp://ftp.math.utah.edu/pub/sgml/htmlpty-x.y.* |
| 648 |
HTMLPRETTY = html-pretty |
| 649 |
|
| 650 |
JAR = jar |
| 651 |
|
| 652 |
LATEX = latex |
| 653 |
|
| 654 |
LN = ln |
| 655 |
|
| 656 |
LS = ls |
| 657 |
|
| 658 |
MAN2HTML = man2html |
| 659 |
|
| 660 |
MATCH = match${EXEEXT} |
| 661 |
|
| 662 |
MKDIR = mkdir -p |
| 663 |
|
| 664 |
MV = mv |
| 665 |
|
| 666 |
NROFF = nroff |
| 667 |
|
| 668 |
PROGRAMS = ${BIBCLEAN} ${BIBISBN} ${MATCH} ${ROMTOL} ${TSTCTYPE} |
| 669 |
|
| 670 |
RM = rm -f |
| 671 |
|
| 672 |
ROMTOL = romtol${EXEEXT} |
| 673 |
|
| 674 |
SED = sed |
| 675 |
|
| 676 |
SHELL = /bin/bash |
| 677 |
|
| 678 |
SRC = bibclean.c chek.c do.c fix.c fndfil.c isbn.c \ |
| 679 |
keybrd.c match.c option.c romtol.c strist.c strtol.c |
| 680 |
|
| 681 |
STRIP = strip |
| 682 |
|
| 683 |
### Only the subdirectories with Makefiles are listed here |
| 684 |
SUBDIRS = doc |
| 685 |
|
| 686 |
TAR = gtar |
| 687 |
|
| 688 |
TAGS-FILES = bibclean.c bibclean.h ch.h chek.c config.h custom.h \ |
| 689 |
delete.h do.c fix.c fndfil.c isbn.c isbn.h keybrd.c \ |
| 690 |
keybrd.h match.c match.h option.c pattern.h romtol.c \ |
| 691 |
strist.c strtol.c token.h toklst.h vaxvms.c vmswild.c \ |
| 692 |
xctype.h xerrno.h xlimits.h xpwd.h xstat.h xstdbool.h \ |
| 693 |
xstdio.h xstdlib.h xstring.h xtypes.h xunistd.h yesorno.h |
| 694 |
|
| 695 |
TEST = test |
| 696 |
|
| 697 |
TESTBIBCLEAN = ${VM} ../${BIBCLEAN} |
| 698 |
|
| 699 |
### For testing purposes, make sure we always have the same |
| 700 |
### initialization files: |
| 701 |
TESTBIBCLEANFLAGS = -init-file ../bibclean.ini \ |
| 702 |
-ISBN-file ../bibclean.isbn \ |
| 703 |
-keyword-file ../bibclean.key |
| 704 |
|
| 705 |
TESTFLAGS = ${DEFS} ${CPPFLAGS} ${CFLAGS} -DTEST |
| 706 |
|
| 707 |
TESTMATCH = ${VM} ../${MATCH} |
| 708 |
|
| 709 |
TESTROMTOL = ${VM} ../${ROMTOL} |
| 710 |
|
| 711 |
TESTTSTCTYPE = ${VM} ../${TSTCTYPE} |
| 712 |
|
| 713 |
TMPDIR = /tmp |
| 714 |
TMPDIR = /var/tmp |
| 715 |
|
| 716 |
TOUCH = touch |
| 717 |
|
| 718 |
TR = tr |
| 719 |
|
| 720 |
TSTCTYPE = tstctype${EXEEXT} |
| 721 |
|
| 722 |
UNZIP = unzip |
| 723 |
|
| 724 |
VERSION = `${AWK} '/^[ \t]*version *= *"[0-9.]+", *$$/ \ |
| 725 |
{ gsub(/[^0-9.]/,"",$$3); print $$3 }' bibclean.c` |
| 726 |
VERSION = 3.07 |
| 727 |
|
| 728 |
WINE = |
| 729 |
|
| 730 |
### Use the make-time option |
| 731 |
### |
| 732 |
### XDEFS="-Dname1=value1 -Dname2=value2 ..." |
| 733 |
### |
| 734 |
### to alter table sizes in bibclean from their defaults of: |
| 735 |
### |
| 736 |
### -DMAXPATHLEN=<system dependent: typically 1024 to 4096> # longest "/path/to/some/file.ext" or "c:\path\to\some\file.ext" |
| 737 |
### -DMAX_BUFFER=8192 # maximum length of output buffer (does NOT limit lengths of input lines) |
| 738 |
### -DMAX_FIELD_LENGTH=12 # maximum field name length |
| 739 |
### -DMAX_ISBN_RANGE=2560 # maximum number of ISBN ranges |
| 740 |
### -DMAX_KEYWORD=200 # maximum number of field names subject to lettercase change |
| 741 |
### -DMAX_LINE=10240 # maximum line length in initialization file |
| 742 |
### -DMAX_PATTERN_NAMES=100 # maximum different pattern names |
| 743 |
### -DMAX_TOKEN=32760 # maximum field value length |
| 744 |
### -DMAX_WIDTH=72 # maximum output line length |
| 745 |
### -DSTD_MAX_TOKEN=1000 # original BibTeX maximum field value length |
| 746 |
### -DSTD_MAX_TOKEN=5000 # for TeX Live 2003--2011 |
| 747 |
### -DSTD_MAX_TOKEN=20000 # for TeX Live 2012--2019 |
| 748 |
### |
| 749 |
### Possible local customizations: |
| 750 |
### |
| 751 |
### -DDOI_RAW_VALID # accept DOI = "10.xxxx" values |
| 752 |
### -DBIBCLEAN_INI=\"BIBCLEANINI\" # environment variable name |
| 753 |
### -DBIBCLEAN_ISBN=\"BIBCLEANISBN\" # environment variable name |
| 754 |
### -DBIBCLEAN_KEY=\"BIBCLEANKEY\" # environment variable name |
| 755 |
### -DINITDIR='"${initdir}"' ${XDEFS} -DHAVE_CONFIG_H |
| 756 |
|
| 757 |
XDEFS = |
| 758 |
|
| 759 |
XSPLINTFLAGS = |
| 760 |
|
| 761 |
ZIP = zip |
| 762 |
|
| 763 |
ZOO = zoo |
| 764 |
|
| 765 |
#======================================================================= |
| 766 |
# Syntax and security checker settings |
| 767 |
|
| 768 |
ANTIC = antic |
| 769 |
ANTICFLAGS = |
| 770 |
|
| 771 |
CPPCHECK = cppcheck |
| 772 |
CPPCHECKFLAGS = -I. --enable=all --force --verbose |
| 773 |
|
| 774 |
FLAWFINDER = flawfinder |
| 775 |
FLAWFINDERFLAGS = |
| 776 |
|
| 777 |
ITS4 = its4 |
| 778 |
ITS4FLAGS = |
| 779 |
|
| 780 |
LINT = |
| 781 |
LINTFLAGS = -I. -b -c -h -x |
| 782 |
LINTFLAGS = -I. -errchk -h -x |
| 783 |
|
| 784 |
RATS = rats |
| 785 |
RATSFLAGS = |
| 786 |
|
| 787 |
SPLINT = splint |
| 788 |
SPLINTFLAGS = -I. \ |
| 789 |
-booltype _Bool \ |
| 790 |
-booltrue __true \ |
| 791 |
-boolfalse __false \ |
| 792 |
-bounds \ |
| 793 |
-initallelements \ |
| 794 |
+posixlib \ |
| 795 |
${XSPLINTFLAGS} |
| 796 |
|
| 797 |
UNO = uno |
| 798 |
UNOFLAGS = -I. -w -D_Bool=int |
| 799 |
|
| 800 |
## Set VM=wine for testing Windows build with CC=i686-pc-mingw32-gcc |
| 801 |
VM = wine |
| 802 |
VM = |
| 803 |
|
| 804 |
### ==================================================================== |
| 805 |
|
| 806 |
.SUFFIXES: |
| 807 |
|
| 808 |
.SUFFIXES: .o .i .c .bib-new .bib-old .bib |
| 809 |
|
| 810 |
.bib.bib-new: |
| 811 |
-${TESTBIBCLEAN} ${TESTBIBCLEANFLAGS} ${BIBCLEANFLAGS} <$< >$@ |
| 812 |
|
| 813 |
.c.i: |
| 814 |
${CC} -E -I. -I${srcdir} ${DEFS} ${CPPFLAGS} ${CFLAGS} $< 2>&1 | \ |
| 815 |
grep -v '^[ ]*$$' >$@ |
| 816 |
|
| 817 |
.c.o: |
| 818 |
${CC} -c -I. -I${srcdir} ${DEFS} ${CPPFLAGS} ${CFLAGS} $< |
| 819 |
|
| 820 |
### ==================================================================== |
| 821 |
|
| 822 |
all: ${PROGRAMS} |
| 823 |
|
| 824 |
BIBCLEAN-OBJS = bibclean.o chek.o do.o fix.o fndfil.o isbn.o \ |
| 825 |
keybrd.o match.o option.o romtol.o strist.o \ |
| 826 |
${LIBOBJS} |
| 827 |
|
| 828 |
${BIBCLEAN}: ${BIBCLEAN-OBJS} |
| 829 |
${CC} -o $@ ${CFLAGS} ${BIBCLEAN-OBJS} ${LDFLAGS} ${LIBS} |
| 830 |
|
| 831 |
bibclean.dvi: bibclean.texi |
| 832 |
cd ${srcdir}; texi2dvi bibclean.texi |
| 833 |
|
| 834 |
### This target converts the option descriptions from the manual pages |
| 835 |
### to C code for inclusion in bibclean.c. The first awk command |
| 836 |
### augments the bibclean.man file in a pipe with some small changes |
| 837 |
### after the .TH line (which sets page dimensions) to get longer |
| 838 |
### unhyphenated ragged-right lines without page headers, and reduces |
| 839 |
### the option description indentation. |
| 840 |
### |
| 841 |
### Here are the magic nroff incantations: |
| 842 |
### |
| 843 |
### .pl 100i set page length to 100in |
| 844 |
### .nr LL 7.2i set LL register (page width) to 7.2in |
| 845 |
### .nh no hyphenation |
| 846 |
### .na no right-adjusting |
| 847 |
### |
| 848 |
### That output feeds into nroff for formatting, col for removal of |
| 849 |
### underlining and escape sequences, expand for tab removal, sed to |
| 850 |
### backslash all quotes, and a final awk step to select the lines |
| 851 |
### between OPTIONS and ERROR headers for conversion to C code. |
| 852 |
|
| 853 |
bibclean.h: bibclean.man |
| 854 |
-test -f $@ && ${CHMOD} u+w $@ |
| 855 |
-${RM} $@ |
| 856 |
echo '/* WARNING: Do NOT edit this file. It was created automatically' \ |
| 857 |
>$@ \ |
| 858 |
echo ' with the command "make bibclean.h" by '$$USER@`hostname` \ |
| 859 |
>>$@ \ |
| 860 |
echo ' in '$$PWD' on '`date`' */' >>$@ |
| 861 |
echo >>$@ |
| 862 |
${AWK} '{ if ($$0 ~ /^.TH/) \ |
| 863 |
printf("%s\n.pl 100i\n.nr LL 7.2i\n.nh\n.na",$$0); \ |
| 864 |
else if ($$0 ~ /^.TP .*remove-OPT-prefixes.*/) \ |
| 865 |
print ".TP 1in"; \ |
| 866 |
else \ |
| 867 |
print $$0}' < bibclean.man | \ |
| 868 |
${NROFF} -man | col -b | expand | ${SED} -e 's/"/\\"/g' | \ |
| 869 |
${SED} -e 's/\\n/|n/g' -e 's/\\"/|"/g' \ |
| 870 |
-e 's/\\/\\\\/g' -e 's/|n/\\n/g' -e 's/|"/\\"/g' | \ |
| 871 |
${AWK} '/^OPTION/,/^ERROR/ {if ($$0 !~ /^[A-Z]/) \ |
| 872 |
printf("\t\"%s\\n\",\n",substr($$0,6))}' >>$@ |
| 873 |
echo ' (const char*)NULL,' >>$@ |
| 874 |
${CHMOD} a-w $@ |
| 875 |
|
| 876 |
### VAX VMS help file format from bibclean.txt |
| 877 |
bibclean.hlp: bibclean.txt rofvms.awk |
| 878 |
${AWK} -f rofvms.awk <bibclean.txt >bibclean.hlp |
| 879 |
|
| 880 |
bibclean.html: bibclean.man |
| 881 |
-${CHMOD} u+w $@ |
| 882 |
${MAN2HTML} $< |
| 883 |
${HTMLPRETTY} bibclean.html | ${CHECKSUM} >[email protected] |
| 884 |
${MV} [email protected] $@ |
| 885 |
${CHMOD} a-w $@ |
| 886 |
${HTMLNCHECK} $@ |
| 887 |
|
| 888 |
bibclean.info: bibclean.texi |
| 889 |
cd ${srcdir}; makeinfo bibclean.texi |
| 890 |
|
| 891 |
bibclean.i: bibclean.c ch.h config.h custom.h delete.h isbn.h keybrd.h \ |
| 892 |
match.h pattern.h token.h toklst.h typedefs.h xctype.h \ |
| 893 |
xlimits.h xstdbool.h xstdio.h xstdlib.h xstring.h xtypes.h \ |
| 894 |
xunistd.h yesorno.h Makefile |
| 895 |
|
| 896 |
bibclean.jar: subdist ${DIST-FILES} |
| 897 |
-${RM} bibclean.jar bibclean.jar-lst |
| 898 |
${JAR} cf bibclean.jar ${DIST-FILES} |
| 899 |
-${MKDIR} bibclean-${VERSION} |
| 900 |
cd bibclean-${VERSION}; ${JAR} xf ../bibclean.jar |
| 901 |
${JAR} cf bibclean-${VERSION}.jar bibclean-${VERSION} |
| 902 |
-${RM} -rf bibclean-${VERSION} |
| 903 |
-${RM} bibclean.jar |
| 904 |
${LN} bibclean-${VERSION}.jar bibclean.jar || \ |
| 905 |
${CP} ${CPFLAGS} bibclean-${VERSION}.jar bibclean.jar |
| 906 |
|
| 907 |
bibclean.o: bibclean.c ch.h config.h custom.h delete.h isbn.h keybrd.h \ |
| 908 |
match.h pattern.h token.h toklst.h typedefs.h xctype.h \ |
| 909 |
xlimits.h xstdbool.h xstdio.h xstdlib.h xstring.h xtypes.h \ |
| 910 |
xunistd.h yesorno.h |
| 911 |
|
| 912 |
bibclean.pdf: bibclean.ps |
| 913 |
${DISTILL} bibclean.ps |
| 914 |
|
| 915 |
bibclean.ps: bibclean.man |
| 916 |
${DITROFF} -Tps -man $? >$@ |
| 917 |
|
| 918 |
bibclean.tar: subdist ${DIST-FILES} |
| 919 |
-${RM} bibclean.tar bibclean.tar-lst |
| 920 |
${TAR} chf bibclean.tar ${DIST-FILES} |
| 921 |
-${MKDIR} bibclean-${VERSION} |
| 922 |
cd bibclean-${VERSION}; ${TAR} xf ../bibclean.tar |
| 923 |
${TAR} cf bibclean-${VERSION}.tar bibclean-${VERSION} |
| 924 |
-${RM} -r bibclean-${VERSION} |
| 925 |
-${RM} bibclean.tar |
| 926 |
${LN} bibclean-${VERSION}.tar bibclean.tar || \ |
| 927 |
${CP} ${CPFLAGS} bibclean-${VERSION}.tar bibclean.tar |
| 928 |
|
| 929 |
bibclean.txt: bibclean.man |
| 930 |
${NROFF} -man bibclean.man | col -b | expand >$@ |
| 931 |
|
| 932 |
bibclean.zip: subdist ${DIST-FILES} |
| 933 |
-${RM} bibclean*.zip |
| 934 |
-${RM} bibclean*.zip-lst |
| 935 |
${ZIP} bibclean-${VERSION}.zip ${DIST-FILES} |
| 936 |
${UNZIP} -v bibclean-${VERSION}.zip >bibclean-${VERSION}.zip-lst |
| 937 |
${LN} bibclean-${VERSION}.zip bibclean.zip || \ |
| 938 |
${CP} ${CPFLAGS} bibclean-${VERSION}.zip bibclean.zip |
| 939 |
|
| 940 |
bibclean.zoo: subdist ${DIST-FILES} |
| 941 |
-${RM} bibclean*.zoo |
| 942 |
-${RM} bibclean*.zoo-lst |
| 943 |
${ZOO} a bibclean-${VERSION}.zoo ${DIST-FILES} |
| 944 |
${ZOO} v bibclean-${VERSION}.zoo >bibclean-${VERSION}.zoo-lst |
| 945 |
${LN} bibclean-${VERSION}.zoo bibclean.zoo || \ |
| 946 |
${CP} ${CPFLAGS} bibclean-${VERSION}.zoo bibclean.zoo |
| 947 |
|
| 948 |
${BIBISBN}: isbn.c |
| 949 |
${CC} -DTEST -I. ${CFLAGS} isbn.c ${LDFLAGS} ${LIBS} -o $@ |
| 950 |
|
| 951 |
check: check-setup check-ctype check-match check-romtol check-bibisbn check-bibtex \ |
| 952 |
check-latex check-scribe |
| 953 |
|
| 954 |
check-antic: |
| 955 |
-${TEST} -n "${ANTIC}" && for f in ${SRC} ; do ${ANTIC} ${ANTICFLAGS} $$f ; done |
| 956 |
|
| 957 |
check-bibisbn: ${BIBISBN} |
| 958 |
@echo "==================== begin ${BIBISBN} test ====================" ; \ |
| 959 |
cd test ; \ |
| 960 |
nfail=0 ; \ |
| 961 |
npass=0 ; \ |
| 962 |
ntest=0 ; \ |
| 963 |
ntotal=`echo ${CHECK-BIBISBN} | wc -w` ; \ |
| 964 |
ntotal=`expr $$ntotal + $$ntotal` ; \ |
| 965 |
echo ; \ |
| 966 |
echo "These checks should produce no output other than their numbers and names," ; \ |
| 967 |
echo "followed by a test summary: no failures are expected anywhere." ; \ |
| 968 |
echo ; \ |
| 969 |
for f in ${CHECK-BIBISBN} ; \ |
| 970 |
do \ |
| 971 |
ntest=`${EXPR} $$ntest + 2` ; \ |
| 972 |
printf "[%2d / %d] %s " $$ntest $$ntotal $$f ; \ |
| 973 |
test -f $$f.in && ../${BIBISBN} < $$f.in > $$f.out 2> $$f.err ; \ |
| 974 |
test -f $$f.opt && ../${BIBISBN} `cat $$f.opt` < /dev/null > $$f.out 2> $$f.err ; \ |
| 975 |
${CMP} -s okay/$$f.out $$f.out && ${RM} $$f.out ; \ |
| 976 |
${CMP} -s okay/$$f.err $$f.err && ${RM} $$f.err ; \ |
| 977 |
test -f $$f.out && printf " FAIL " && nfail=`expr $$nfail + 1` ; \ |
| 978 |
test ! -f $$f.out && printf "PASS " && npass=`expr $$npass + 1` ; \ |
| 979 |
test -f $$f.err && printf " FAIL" && nfail=`expr $$nfail + 1` ; \ |
| 980 |
test ! -f $$f.err && printf "PASS" && npass=`expr $$npass + 1` ; \ |
| 981 |
echo ; \ |
| 982 |
done ; \ |
| 983 |
echo ; \ |
| 984 |
echo PASS: $$npass of $$ntest tests ; \ |
| 985 |
test $$nfail -ne 0 && echo FAIL: $$nfail of $$ntest tests ; \ |
| 986 |
echo ; \ |
| 987 |
test $$nfail -eq 0 && echo ALL TESTS PASSED! ; \ |
| 988 |
echo ; \ |
| 989 |
echo "===================== end ${BIBISBN} test =====================" ; \ |
| 990 |
echo |
| 991 |
|
| 992 |
check-bibtex: ${BIBCLEAN} |
| 993 |
@echo |
| 994 |
@echo "===================== begin BibTeX test ======================" |
| 995 |
@echo |
| 996 |
@echo This test takes from 25 to 250 seconds on current and vintage machines. |
| 997 |
@echo Test times that are much longer indicate a SERIOUS problem. |
| 998 |
@echo |
| 999 |
@-cd test ; \ |
| 1000 |
echo ${CHECK-BIBTEX} | wc -w > total.dat ; \ |
| 1001 |
echo "These checks should produce no output other than their numbers and names," ; \ |
| 1002 |
echo "followed by a test summary: no failures are expected anywhere." ; \ |
| 1003 |
echo ; \ |
| 1004 |
nfail=0 ; \ |
| 1005 |
npass=0 ; \ |
| 1006 |
ntest=0 ; \ |
| 1007 |
ntotal=`echo ${CHECK-BIBTEX} | wc -w` ; \ |
| 1008 |
for b in ${CHECK-BIBTEX} ; \ |
| 1009 |
do \ |
| 1010 |
ntest=`${EXPR} $$ntest + 1` ; \ |
| 1011 |
bibfile=$$b.bib ; \ |
| 1012 |
optfile=$$b.opt ; \ |
| 1013 |
options=`${CAT} $$optfile` ; \ |
| 1014 |
printf "[%2d / %d] " $$ntest $$ntotal ; \ |
| 1015 |
echo $$b `echo $$options | ${CUT} -c -70 ` ; \ |
| 1016 |
${TESTBIBCLEAN} ${TESTBIBCLEANFLAGS} ${BIBCLEANFLAGS} `${CAT} $$optfile` $$bibfile >$$b.out 2> $$b.ert ; \ |
| 1017 |
${SED} -e ` printf 's/\015$$//' ` $$b.ert > ${TMPDIR}/$$b.ert.$$$$ ; \ |
| 1018 |
${MV} ${TMPDIR}/$$b.ert.$$$$ $$b.ert ; \ |
| 1019 |
${SED} -e ` printf 's/\015$$//' ` $$b.out > ${TMPDIR}/$$b.out.$$$$ ; \ |
| 1020 |
${MV} ${TMPDIR}/$$b.out.$$$$ $$b.out ; \ |
| 1021 |
${GREP} -v '^Compiled by' < $$b.ert >$$b.err ; \ |
| 1022 |
${RM} $$b.ert ; \ |
| 1023 |
${DIFF} okay/$$b.err $$b.err ; \ |
| 1024 |
${CMP} -s okay/$$b.err $$b.err 2>/dev/null && ${RM} $$b.err ; \ |
| 1025 |
${DIFF} okay/$$b.out $$b.out ; \ |
| 1026 |
${CMP} -s okay/$$b.out $$b.out 2>/dev/null && ${RM} $$b.out ; \ |
| 1027 |
if test -f $$b.err -o -f $$b.out ; \ |
| 1028 |
then \ |
| 1029 |
nfail=`${EXPR} $$nfail + 1` ; \ |
| 1030 |
else \ |
| 1031 |
npass=`${EXPR} $$npass + 1` ; \ |
| 1032 |
fi ; \ |
| 1033 |
done ; \ |
| 1034 |
echo ; \ |
| 1035 |
echo PASS: $$npass of $$ntest tests ; \ |
| 1036 |
test $$nfail -ne 0 && echo FAIL: $$nfail of $$ntest tests ; \ |
| 1037 |
echo ; \ |
| 1038 |
test $$nfail -eq 0 && echo ALL TESTS PASSED! ; \ |
| 1039 |
echo ; \ |
| 1040 |
${RM} fail.dat pass.dat total.dat |
| 1041 |
@echo |
| 1042 |
@echo "====================== end BibTeX test ========================" |
| 1043 |
@echo |
| 1044 |
|
| 1045 |
check-cppcheck: |
| 1046 |
-${TEST} -n "${CPPCHECK}" && for f in ${SRC} ; do ${CPPCHECK} ${CPPCHECKFLAGS} $$f ; done |
| 1047 |
|
| 1048 |
check-ctype: ${TSTCTYPE} |
| 1049 |
@echo |
| 1050 |
@echo "===================== begin ctype test ======================" |
| 1051 |
@echo |
| 1052 |
-@cd test ; \ |
| 1053 |
echo "NB: A failure of this test is SERIOUS. It indicates that the C library" ; \ |
| 1054 |
echo "<ctype.h> isxxx() and toxxx() functions are behaving unconventionally," ; \ |
| 1055 |
echo "and the result will likely be later failure of the BibTeX testbib1 test." ; \ |
| 1056 |
echo "Among systems tested for this release, OpenBSD 3.2 is known to fail here." ; \ |
| 1057 |
echo ; \ |
| 1058 |
echo "The following checks should produce no output other than their names." ; \ |
| 1059 |
echo ; \ |
| 1060 |
echo tstctype ; \ |
| 1061 |
LANG=C ${TESTTSTCTYPE} | ${SED} -e ` printf 's/\015$$//' ` > tstctype.out ; \ |
| 1062 |
${DIFF} okay/tstctype.out tstctype.out ; \ |
| 1063 |
${CMP} -s okay/tstctype.out tstctype.out 2>/dev/null && ${RM} tstctype.out |
| 1064 |
@echo |
| 1065 |
@echo "====================== end ctype test ========================" |
| 1066 |
@echo |
| 1067 |
|
| 1068 |
check-flawfinder: |
| 1069 |
-${TEST} -n "${FLAWFINDER}" && for f in ${SRC} ; do ${FLAWFINDER} ${FLAWFINDERFLAGS} $$f ; done |
| 1070 |
|
| 1071 |
check-its4: |
| 1072 |
-${TEST} -n "${ITS4}" && for f in ${SRC} ; do ${ITS4} ${ITS4FLAGS} $$f ; done |
| 1073 |
|
| 1074 |
check-latex: |
| 1075 |
@echo |
| 1076 |
@echo "===================== begin LaTeX test =======================" |
| 1077 |
@echo |
| 1078 |
@if test \( "xx${LATEX}" = "xx" \) -o \( "xx${BIBTEX}" = "xx" \) ; \ |
| 1079 |
then \ |
| 1080 |
echo "$@ skipped: missing LaTeX and/or BibTeX" ; \ |
| 1081 |
else \ |
| 1082 |
cd test ; \ |
| 1083 |
echo "The following checks should produce no output other than their names." ; \ |
| 1084 |
echo ; \ |
| 1085 |
for f in ${CHECK-LATEX} ; \ |
| 1086 |
do \ |
| 1087 |
b=`basename $$f .ltx` ; \ |
| 1088 |
optfile=$$b.opt ; \ |
| 1089 |
echo $$b `${CAT} $$optfile` ; \ |
| 1090 |
${TESTBIBCLEAN} ${TESTBIBCLEANFLAGS} ${BIBCLEANFLAGS} \ |
| 1091 |
`${CAT} $$optfile` $$b.bin > $$b.out 2> $$b.err ; \ |
| 1092 |
${SED} -e ` printf 's/\015$$//' ` $$b.err > ${TMPDIR}/$$b.err.$$$$ ; \ |
| 1093 |
${MV} ${TMPDIR}/$$b.err.$$$$ $$b.err ; \ |
| 1094 |
${SED} -e ` printf 's/\015$$//' ` $$b.out > ${TMPDIR}/$$b.out.$$$$ ; \ |
| 1095 |
${MV} ${TMPDIR}/$$b.out.$$$$ $$b.out ; \ |
| 1096 |
${CP} ${CPFLAGS} $$b.out $$b.bib ; \ |
| 1097 |
${LATEX} $$b.ltx >/dev/null 2>/dev/null ; \ |
| 1098 |
${BIBTEX} $$b 1>/dev/null ; \ |
| 1099 |
${TEST} -f $$b.blg && ${FIXBLG} $$b.blg > $$b.tmp && ${MV} $$b.tmp $$b.blg ; \ |
| 1100 |
${RM} $$b.aux $$b.bib $$b.log ; \ |
| 1101 |
${DIFF} okay/$$b.bbl $$b.bbl ; \ |
| 1102 |
${CMP} -s okay/$$b.bbl $$b.bbl 2>/dev/null && ${RM} $$b.bbl ; \ |
| 1103 |
${DIFF} okay/$$b.blg $$b.blg ; \ |
| 1104 |
${CMP} -s okay/$$b.blg $$b.blg 2>/dev/null && ${RM} $$b.blg ; \ |
| 1105 |
${DIFF} okay/$$b.err $$b.err ; \ |
| 1106 |
${CMP} -s okay/$$b.err $$b.err 2>/dev/null && ${RM} $$b.err ; \ |
| 1107 |
${DIFF} okay/$$b.out $$b.out ; \ |
| 1108 |
${CMP} -s okay/$$b.out $$b.out 2>/dev/null && ${RM} $$b.out ; \ |
| 1109 |
done ; \ |
| 1110 |
fi |
| 1111 |
@echo |
| 1112 |
@echo "====================== end LaTeX test ========================" |
| 1113 |
@echo |
| 1114 |
|
| 1115 |
check-lint: |
| 1116 |
-${TEST} -n "${LINT}" && for f in ${SRC} ; do ${LINT} ${LINTFLAGS} $$f ; done |
| 1117 |
|
| 1118 |
check-match: ${MATCH} |
| 1119 |
@echo |
| 1120 |
@echo "===================== begin match test =======================" |
| 1121 |
@echo |
| 1122 |
@cd test ; \ |
| 1123 |
echo "The following checks should produce no output other than their names." ; \ |
| 1124 |
echo ; \ |
| 1125 |
for f in ${CHECK-MATCH} ; \ |
| 1126 |
do \ |
| 1127 |
b=`basename $$f .in` ; \ |
| 1128 |
echo $$b ; \ |
| 1129 |
${TESTMATCH} < $$f >$$b.out 2>$$b.err ; \ |
| 1130 |
${SED} -e ` printf 's/\015$$//' ` $$b.err > ${TMPDIR}/$$b.err.$$$$ ; \ |
| 1131 |
${MV} ${TMPDIR}/$$b.err.$$$$ $$b.err ; \ |
| 1132 |
${SED} -e ` printf 's/\015$$//' ` $$b.out > ${TMPDIR}/$$b.out.$$$$ ; \ |
| 1133 |
${MV} ${TMPDIR}/$$b.out.$$$$ $$b.out ; \ |
| 1134 |
${DIFF} okay/$$b.err $$b.err ; \ |
| 1135 |
${CMP} -s okay/$$b.err $$b.err 2>/dev/null && ${RM} $$b.err ; \ |
| 1136 |
${DIFF} okay/$$b.out $$b.out ; \ |
| 1137 |
${CMP} -s okay/$$b.out $$b.out 2>/dev/null && ${RM} $$b.out ; \ |
| 1138 |
done |
| 1139 |
@echo |
| 1140 |
@echo "====================== end match test ========================" |
| 1141 |
@echo |
| 1142 |
|
| 1143 |
check-rats: |
| 1144 |
-${TEST} -n "${RATS}" && for f in ${SRC} ; do ${RATS} ${RATSFLAGS} $$f ; done |
| 1145 |
|
| 1146 |
check-romtol: ${ROMTOL} |
| 1147 |
@echo |
| 1148 |
@echo "===================== begin romtol test ======================" |
| 1149 |
@echo |
| 1150 |
@cd test ; \ |
| 1151 |
echo "The following checks should produce no output other than their names." ; \ |
| 1152 |
echo ; \ |
| 1153 |
for f in ${CHECK-ROMTOL} ; \ |
| 1154 |
do \ |
| 1155 |
b=`basename $$f .in` ; \ |
| 1156 |
echo $$b ; \ |
| 1157 |
${TESTROMTOL} < $$f >$$b.out 2>$$b.err ; \ |
| 1158 |
${SED} -e ` printf 's/\015$$//' ` $$b.err > ${TMPDIR}/$$b.err.$$$$ ; \ |
| 1159 |
${MV} ${TMPDIR}/$$b.err.$$$$ $$b.err ; \ |
| 1160 |
${SED} -e ` printf 's/\015$$//' ` $$b.out > ${TMPDIR}/$$b.out.$$$$ ; \ |
| 1161 |
${MV} ${TMPDIR}/$$b.out.$$$$ $$b.out ; \ |
| 1162 |
${DIFF} okay/$$b.err $$b.err ; \ |
| 1163 |
${CMP} -s okay/$$b.err $$b.err 2>/dev/null && ${RM} $$b.err ; \ |
| 1164 |
${DIFF} okay/$$b.out $$b.out ; \ |
| 1165 |
${CMP} -s okay/$$b.out $$b.out 2>/dev/null && ${RM} $$b.out ; \ |
| 1166 |
done |
| 1167 |
@echo |
| 1168 |
@echo "====================== end romtol test =======================" |
| 1169 |
@echo |
| 1170 |
|
| 1171 |
### The peculiar step using tr to prepare the .aux files is needed to |
| 1172 |
### overcome inconsistencies in the handling of backslashes by the IBM |
| 1173 |
### RS/6000 shell. The documented behavior in the SunOS 4.1.1 manual |
| 1174 |
### pages is (emphasis mine): |
| 1175 |
### All characters enclosed between a pair of single quote marks |
| 1176 |
### (''), except a single quote, are quoted by the shell. BACKSLASH |
| 1177 |
### HAS NO SPECIAL MEANING INSIDE A PAIR OF SINGLE QUOTES. A single |
| 1178 |
### quote may be quoted inside a pair of double quote marks (for |
| 1179 |
### example, "'"). |
| 1180 |
### On SunOS, HP UX, IBM 3090 AIX, NeXT Mach, and SGI IRIX, the shells |
| 1181 |
### csh, sh, bash, and ksh agree with this. However, on IBM RS/6000 |
| 1182 |
### AIX 3.2, backslashes in single quotes are untouched by csh, but |
| 1183 |
### expanded by sh and ksh. This is clearly a bug, because the IBM AIX |
| 1184 |
### INFO system hypertext node on bsh/rsh says: |
| 1185 |
### All characters, except the enclosing single quotation marks, are |
| 1186 |
### taken literally, with any special meaning removed. |
| 1187 |
### |
| 1188 |
check-scribe: ${BIBCLEAN} |
| 1189 |
@echo |
| 1190 |
@echo "===================== begin Scribe test ======================" |
| 1191 |
@echo |
| 1192 |
@if test "xx${BIBTEX}" = "xx" ; \ |
| 1193 |
then \ |
| 1194 |
echo "$@ skipped: missing BibTeX" ; \ |
| 1195 |
else \ |
| 1196 |
cd test ; \ |
| 1197 |
echo "The following checks should produce no output other than their names." ; \ |
| 1198 |
echo ; \ |
| 1199 |
for f in ${CHECK-SCRIBE} ; \ |
| 1200 |
do \ |
| 1201 |
b=`basename $$f .bib` ; \ |
| 1202 |
optfile=$$b.opt ; \ |
| 1203 |
echo $$b `${CAT} $$optfile` ; \ |
| 1204 |
${TESTBIBCLEAN} ${TESTBIBCLEANFLAGS} ${BIBCLEANFLAGS} `${CAT} $$optfile` $$f >$$b.out 2>$$b.err ; \ |
| 1205 |
${SED} -e ` printf 's/\015$$//' ` $$b.err > ${TMPDIR}/$$b.err.$$$$ ; \ |
| 1206 |
${MV} ${TMPDIR}/$$b.err.$$$$ $$b.err ; \ |
| 1207 |
${SED} -e ` printf 's/\015$$//' ` $$b.out > ${TMPDIR}/$$b.out.$$$$ ; \ |
| 1208 |
${MV} ${TMPDIR}/$$b.out.$$$$ $$b.out ; \ |
| 1209 |
echo 'Bbibstyle{plain}NBcitation{*}NBbibdata{'$$b'}' | \ |
| 1210 |
${TR} BN '\134\012' >$$b.aux ; \ |
| 1211 |
${BIBTEX} $$b 1>/dev/null ; \ |
| 1212 |
${TEST} -f $$b.blg && ${FIXBLG} $$b.blg > $$b.tmp && ${MV} $$b.tmp $$b.blg ; \ |
| 1213 |
${RM} $$b.aux ; \ |
| 1214 |
${DIFF} okay/$$b.bbl $$b.bbl ; \ |
| 1215 |
${CMP} -s okay/$$b.bbl $$b.bbl 2>/dev/null && ${RM} $$b.bbl ; \ |
| 1216 |
${DIFF} okay/$$b.blg $$b.blg ; \ |
| 1217 |
${CMP} -s okay/$$b.blg $$b.blg 2>/dev/null && ${RM} $$b.blg ; \ |
| 1218 |
${DIFF} okay/$$b.err $$b.err ; \ |
| 1219 |
${CMP} -s okay/$$b.err $$b.err 2>/dev/null && ${RM} $$b.err ; \ |
| 1220 |
${DIFF} okay/$$b.out $$b.out ; \ |
| 1221 |
${CMP} -s okay/$$b.out $$b.out 2>/dev/null && ${RM} $$b.out ; \ |
| 1222 |
done ; \ |
| 1223 |
fi |
| 1224 |
@echo |
| 1225 |
@echo "====================== end Scribe test ========================" |
| 1226 |
@echo |
| 1227 |
|
| 1228 |
check-setup: ${BIBCLEAN} ${MATCH} ${ROMTOL} ${TSTCTYPE} |
| 1229 |
|
| 1230 |
check-splint: |
| 1231 |
-${TEST} -n "${SPLINT}" && for f in ${SRC} ; do ${SPLINT} ${SPLINTFLAGS} $$f ; done |
| 1232 |
|
| 1233 |
check-syntax: check-antic check-cppcheck check-flawfinder check-its4 \ |
| 1234 |
check-lint check-rats check-splint check-uno |
| 1235 |
|
| 1236 |
check-uno: |
| 1237 |
-${TEST} -n "${UNO}" && ${UNO} ${UNOFLAGS} ${SRC} |
| 1238 |
|
| 1239 |
check-version: Makefile |
| 1240 |
@echo "Version number is ""'"${VERSION}"'" |
| 1241 |
|
| 1242 |
clean: clean-test clean-dist |
| 1243 |
-${RM} *.aux |
| 1244 |
-${RM} *.bbl |
| 1245 |
-${RM} *.blg |
| 1246 |
-${RM} *.dvi |
| 1247 |
-${RM} *.err |
| 1248 |
-${RM} *.i |
| 1249 |
-${RM} *.log |
| 1250 |
-${RM} *.o |
| 1251 |
-${RM} *~ |
| 1252 |
-${RM} \#* |
| 1253 |
-${RM} configure.tmp |
| 1254 |
-${RM} core test/core |
| 1255 |
-${RM} ${MATCH} match.lst |
| 1256 |
-${RM} ${ROMTOL} romtol.lst |
| 1257 |
-${RM} testcodn.bib |
| 1258 |
-${RM} testisxn.bib |
| 1259 |
-${RM} testscr2.bi2 testscr2.er2 |
| 1260 |
-${RM} ${TSTCTYPE} |
| 1261 |
# [08-Nov-1999] Suppress subdir make to preserve distribution files |
| 1262 |
# -for d in ${SUBDIRS} ; do (cd $$d ; ${MAKE} clean ) ; done |
| 1263 |
|
| 1264 |
clean-dist: |
| 1265 |
-${RM} bibclean.jar bibclean-?.??.jar |
| 1266 |
-${RM} bibclean.jar-lst |
| 1267 |
-${RM} bibclean.tar bibclean-?.??.tar |
| 1268 |
-${RM} bibclean.tar-lst |
| 1269 |
-${RM} bibclean-${VERSION}.tar |
| 1270 |
-${RM} bibclean.zip bibclean-?.??.zip |
| 1271 |
-${RM} bibclean.zip-lst bibclean-?.??.zip-lst |
| 1272 |
-${RM} bibclean.zoo bibclean-?.??.zoo |
| 1273 |
-${RM} bibclean.zoo-lst bibclean-?.??.zoo-lst |
| 1274 |
|
| 1275 |
clean-test: |
| 1276 |
-${RM} test/*.aux test/*.bbl test/*.blg test/*.err test/*.ert \ |
| 1277 |
test/*.log test/*.out test/*.tmp |
| 1278 |
|
| 1279 |
clobber: clean |
| 1280 |
-${RM} ${PROGRAMS} |
| 1281 |
-${RM} bibclean.hlp |
| 1282 |
-${RM} bibclean.ps |
| 1283 |
-${RM} bibclean.txt |
| 1284 |
-${RM} install.time install-ftp.time |
| 1285 |
# [08-Nov-1999] Suppress subdir make to preserve distribution files |
| 1286 |
# -for d in ${SUBDIRS} ; do (cd $$d ; ${MAKE} clobber ) ; done |
| 1287 |
|
| 1288 |
dist: bibclean.jar bibclean.tar bibclean.zip bibclean.zoo |
| 1289 |
|
| 1290 |
distclean: clobber |
| 1291 |
-${RM} config.cache config.h config.log config.status |
| 1292 |
-${RM} -r autom4te.cache |
| 1293 |
-${RM} bibclean*.jar-lst bibclean*.tar-lst bibclean*.zip-lst \ |
| 1294 |
bibclean*.zoo-lst |
| 1295 |
# [08-Nov-1999] Suppress subdir make to preserve distribution files |
| 1296 |
# -for d in ${SUBDIRS} ; do (cd $$d ; ${MAKE} distclean ) ; done |
| 1297 |
-${RM} Makefile |
| 1298 |
|
| 1299 |
docs: bibclean.txt bibclean.hlp bibclean.html bibclean.ps bibclean.pdf |
| 1300 |
|
| 1301 |
chek.i: chek.c config.h custom.h match.h token.h typedefs.h xctype.h \ |
| 1302 |
xstat.h xstdio.h xstring.h yesorno.h Makefile |
| 1303 |
|
| 1304 |
chek.o: chek.c config.h custom.h match.h token.h typedefs.h xctype.h \ |
| 1305 |
xstat.h xstdio.h xstring.h yesorno.h |
| 1306 |
|
| 1307 |
do.i: do.c ch.h config.h custom.h delete.h keybrd.h match.h \ |
| 1308 |
pattern.h token.h toklst.h typedefs.h xctype.h xstdbool.h \ |
| 1309 |
xstdio.h xstdlib.h xstring.h xunistd.h yesorno.h Makefile |
| 1310 |
|
| 1311 |
do.o: do.c ch.h config.h custom.h delete.h keybrd.h match.h \ |
| 1312 |
pattern.h token.h toklst.h typedefs.h xctype.h xstdbool.h \ |
| 1313 |
xstdio.h xstdlib.h xstring.h xunistd.h yesorno.h |
| 1314 |
|
| 1315 |
fix.i: fix.c config.h custom.h match.h token.h typedefs.h xctype.h \ |
| 1316 |
xstring.h yesorno.h Makefile |
| 1317 |
|
| 1318 |
fix.o: fix.c config.h custom.h match.h token.h typedefs.h xctype.h \ |
| 1319 |
xstring.h yesorno.h |
| 1320 |
|
| 1321 |
fndfil.i: fndfil.c config.h custom.h typedefs.h xctype.h xpwd.h \ |
| 1322 |
xstdbool.h xstdio.h xstdlib.h xstring.h xunistd.h Makefile |
| 1323 |
|
| 1324 |
fndfil.o: fndfil.c config.h custom.h typedefs.h xctype.h xpwd.h \ |
| 1325 |
xstdbool.h xstdio.h xstdlib.h xstring.h xunistd.h |
| 1326 |
|
| 1327 |
isbn.i: isbn.c ch.h config.h custom.h isbn.h isbn.tbl xctype.h \ |
| 1328 |
xstdbool.h xstdio.h xstdlib.h xstring.h yesorno.h Makefile |
| 1329 |
|
| 1330 |
isbn.o: isbn.c ch.h config.h custom.h isbn.h isbn.tbl xctype.h \ |
| 1331 |
xstdbool.h xstdio.h xstdlib.h xstring.h yesorno.h |
| 1332 |
|
| 1333 |
keybrd.i: ch.h config.h custom.h xstdio.h xstring.h xunistd.h \ |
| 1334 |
yesorno.h Makefile |
| 1335 |
|
| 1336 |
keybrd.o: keybrd.c ch.h config.h custom.h xctype.h xstdio.h xstring.h \ |
| 1337 |
xunistd.h yesorno.h |
| 1338 |
|
| 1339 |
### Build a test program for match() |
| 1340 |
${MATCH}: match.c romtol.o |
| 1341 |
-${RM} matchx.o |
| 1342 |
${CC} -I. -I${srcdir} ${TESTFLAGS} -o matchx.o -c match.c |
| 1343 |
${CC} -I. -I${srcdir} ${TESTFLAGS} -o $@ matchx.o romtol.o ${LDFLAGS} ${LIBS} |
| 1344 |
-${RM} matchx.o |
| 1345 |
|
| 1346 |
match.i: match.c config.h custom.h match.h xctype.h xstdbool.h \ |
| 1347 |
xstdio.h xstdlib.h xstring.h yesorno.h Makefile |
| 1348 |
|
| 1349 |
match.o: match.c config.h custom.h match.h xctype.h xstdbool.h \ |
| 1350 |
xstdio.h xstdlib.h xstring.h yesorno.h |
| 1351 |
|
| 1352 |
mostlyclean: clean |
| 1353 |
# [08-Nov-1999] Suppress subdir make to preserve distribution files |
| 1354 |
# -for d in ${SUBDIRS} ; do (cd $$d ; ${MAKE} mostlyclean ) ; done |
| 1355 |
|
| 1356 |
option.i: option.c bibclean.h ch.h config.h custom.h isbn.h match.h \ |
| 1357 |
typedefs.h xstdbool.h xstdio.h xstdlib.h xstring.h yesorno.h \ |
| 1358 |
Makefile |
| 1359 |
|
| 1360 |
### When HOST, USER, __DATE__, and __TIME__ are available, |
| 1361 |
### bibclean preserves them for its version output |
| 1362 |
option.o: option.c bibclean.h ch.h config.h custom.h isbn.h match.h \ |
| 1363 |
typedefs.h xstdbool.h xstdio.h xstdlib.h xstring.h yesorno.h |
| 1364 |
${CC} -I. -I${srcdir} ${CFLAGS} -c -DHOST=\"${HOST}\" -DUSER=\"${USER}\" option.c |
| 1365 |
|
| 1366 |
### Build a test program for romtol() |
| 1367 |
${ROMTOL}: romtol.c |
| 1368 |
-${RM} romtolx.o |
| 1369 |
${CC} -I. -I${srcdir} ${TESTFLAGS} -o romtolx.o -c romtol.c |
| 1370 |
${CC} -I. -I${srcdir} ${TESTFLAGS} -o $@ romtolx.o ${LDFLAGS} ${LIBS} |
| 1371 |
-${RM} romtolx.o |
| 1372 |
|
| 1373 |
romtol.i: romtol.c config.h custom.h xctype.h xstring.h xstdbool.h \ |
| 1374 |
xstdio.h xstdlib.h Makefile |
| 1375 |
|
| 1376 |
romtol.o: romtol.c config.h custom.h xctype.h xstring.h xstdbool.h \ |
| 1377 |
xstdio.h xstdlib.h |
| 1378 |
|
| 1379 |
splint: splint.log |
| 1380 |
|
| 1381 |
splint.log: ${SRC} *.h Makefile |
| 1382 |
-${SPLINT} ${SPLINTFLAGS} ${SRC} > $@ |
| 1383 |
|
| 1384 |
strist.i: strist.c config.h custom.h xctype.h xstdio.h xstring.h Makefile |
| 1385 |
|
| 1386 |
strist.o: strist.c config.h custom.h xctype.h xstdio.h xstring.h |
| 1387 |
|
| 1388 |
strtol.i: strtol.c config.h custom.h xctype.h xstdbool.h xstdio.h \ |
| 1389 |
xstdlib.h xstring.h Makefile |
| 1390 |
|
| 1391 |
strtol.o: strtol.c config.h custom.h xctype.h xstdbool.h xstdio.h \ |
| 1392 |
xstdlib.h xstring.h |
| 1393 |
|
| 1394 |
### Subdirectory makes needed for distribution file creation |
| 1395 |
subdist: |
| 1396 |
-for d in ${SUBDIRS} ; do (cd $$d ; ${MAKE} ) ; done |
| 1397 |
|
| 1398 |
${TSTCTYPE}: tstctype.c |
| 1399 |
${CC} ${CFLAGS} -o $@ $? ${LDFLAGS} ${LIBS} |
| 1400 |
|
| 1401 |
### ==================================================================== |
| 1402 |
### Additional targets required by GNU Coding standards |
| 1403 |
|
| 1404 |
Makefile: Makefile.in config.status |
| 1405 |
./config.status |
| 1406 |
|
| 1407 |
config.status: configure |
| 1408 |
${srcdir}/configure --srcdir=${srcdir} --no-create --config-cache |
| 1409 |
|
| 1410 |
configure reconfigure: configure.ac configure.sed |
| 1411 |
cd ${srcdir}; ${AUTOCONF} ; ${AUTOHEADER} |
| 1412 |
### Apply needed fixup for C++ with configure |
| 1413 |
${MV} configure configure.tmp |
| 1414 |
${SED} -f configure.sed <configure.tmp >configure |
| 1415 |
-${RM} configure.tmp |
| 1416 |
${CHMOD} +x configure |
| 1417 |
|
| 1418 |
maintainer-clean: distclean |
| 1419 |
@echo "This command is intended for maintainers to use;" |
| 1420 |
@echo "it deletes files that may require special tools to rebuild." |
| 1421 |
-${CHMOD} u+w bibclean.html |
| 1422 |
-${RM} bibclean.html |
| 1423 |
-${RM} bibclean.pdf |
| 1424 |
-${RM} TAGS |
| 1425 |
-${RM} configure config.hin |
| 1426 |
# [08-Nov-1999] Suppress subdir make to preserve distribution files |
| 1427 |
# -for d in ${SUBDIRS} ; do (cd $$d ; ${MAKE} maintainer-clean ) ; done |
| 1428 |
|
| 1429 |
TAGS: Makefile ${TAGS-FILES} |
| 1430 |
cd ${srcdir}; ${ETAGS} ${TAGS-FILES} |
| 1431 |
|
| 1432 |
### ==================================================================== |
| 1433 |
|
| 1434 |
install: install.time |
| 1435 |
|
| 1436 |
install.time: install-exe install-ini install-man |
| 1437 |
${TOUCH} install.time |
| 1438 |
|
| 1439 |
install-exe: uninstall-exe install-bibclean install-bibisbn |
| 1440 |
|
| 1441 |
install-bibclean: ${BIBCLEAN} |
| 1442 |
test -d ${DESTDIR}${bindir} || ${MKDIR} ${DESTDIR}${bindir} |
| 1443 |
if ${TEST} -f ${DESTDIR}${bindir}/${BIBCLEAN} ; \ |
| 1444 |
then \ |
| 1445 |
${MV} ${DESTDIR}${bindir}/${BIBCLEAN} \ |
| 1446 |
${DESTDIR}${bindir}/${BIBCLEAN}.old ; \ |
| 1447 |
fi |
| 1448 |
-${RM} ${DESTDIR}${bindir}/bibclean-${VERSION} |
| 1449 |
${CP} ${CPFLAGS} ${BIBCLEAN} ${DESTDIR}${bindir}/${BIBCLEAN} |
| 1450 |
-${STRIP} ${DESTDIR}${bindir}/${BIBCLEAN} |
| 1451 |
${LN} ${DESTDIR}${bindir}/${BIBCLEAN} ${DESTDIR}${bindir}/bibclean-${VERSION}${EXEEXT} || \ |
| 1452 |
${CP} ${CPFLAGS} ${DESTDIR}${bindir}/${BIBCLEAN} ${DESTDIR}${bindir}/bibclean-${VERSION}${EXEEXT} |
| 1453 |
${CHMOD} 775 ${DESTDIR}${bindir}/${BIBCLEAN} |
| 1454 |
$(MAKE) |
| 1455 |
|
| 1456 |
install-bibisbn: ${BIBISBN} |
| 1457 |
test -d ${DESTDIR}${bindir} || ${MKDIR} ${DESTDIR}${bindir} |
| 1458 |
if ${TEST} -f ${DESTDIR}${bindir}/${BIBISBN} ; \ |
| 1459 |
then \ |
| 1460 |
${MV} ${DESTDIR}${bindir}/${BIBISBN} \ |
| 1461 |
${DESTDIR}${bindir}/${BIBISBN}.old ; \ |
| 1462 |
fi |
| 1463 |
-${RM} ${DESTDIR}${bindir}/bibisbn-${VERSION} |
| 1464 |
${CP} ${CPFLAGS} ${BIBISBN} ${DESTDIR}${bindir}/${BIBISBN} |
| 1465 |
-${STRIP} ${DESTDIR}${bindir}/${BIBISBN} |
| 1466 |
${LN} ${DESTDIR}${bindir}/${BIBISBN} ${DESTDIR}${bindir}/bibisbn-${VERSION}${EXEEXT} || \ |
| 1467 |
${CP} ${CPFLAGS} ${DESTDIR}${bindir}/${BIBISBN} ${DESTDIR}${bindir}/bibisbn-${VERSION}${EXEEXT} |
| 1468 |
${CHMOD} 775 ${DESTDIR}${bindir}/${BIBISBN} |
| 1469 |
|
| 1470 |
### Although it is generally considered bad form to install |
| 1471 |
### initialization files in the same location as executable files |
| 1472 |
### (mostly because they confuse directory listings), we make an |
| 1473 |
### exception for bibclean because (a) the files are, on UNIX, `hidden' |
| 1474 |
### (by their leading dot), (b) doing so avoids the need for yet |
| 1475 |
### another hard-coded configuration directory, or else another search path, |
| 1476 |
### and (c) search paths are more flexible than fixed configuration-file |
| 1477 |
### directories. |
| 1478 |
|
| 1479 |
install-ini: uninstall-ini |
| 1480 |
# OLD: ${CP} bibclean.ini ${DESTDIR}${bindir}/.bibcleanrc |
| 1481 |
# OLD: ${CHMOD} 664 ${DESTDIR}${bindir}/.bibcleanrc |
| 1482 |
# OLD: ${CP} bibclean.key ${DESTDIR}${bindir}/.bibclean.key |
| 1483 |
# OLD: ${CHMOD} 664 ${DESTDIR}${bindir}/.bibclean.key |
| 1484 |
# OLD: ${CP} bibclean.isbn ${DESTDIR}${bindir}/.bibclean.isbn |
| 1485 |
# OLD: ${CHMOD} 664 ${DESTDIR}${bindir}/.bibclean.isbn |
| 1486 |
-${TEST} -d ${DESTDIR}${bibcleandir} || ${MKDIR} ${DESTDIR}${bibcleandir} |
| 1487 |
-${TEST} -d ${DESTDIR}${initdir} || ${MKDIR} ${DESTDIR}${initdir} |
| 1488 |
-${TEST} ! -d ${DESTDIR}${initdir} && echo ERROR: cannot create ${DESTDIR}${initdir} && exit 1 |
| 1489 |
${CP} ${CPFLAGS} bibclean.ini bibclean.key bibclean.isbn ${DESTDIR}${initdir}/ |
| 1490 |
${CHMOD} 664 ${DESTDIR}${initdir}/bibclean.* |
| 1491 |
|
| 1492 |
install-man: bibclean.man uninstall-man |
| 1493 |
test -d ${DESTDIR}${mandir} || ${MKDIR} ${DESTDIR}${mandir} |
| 1494 |
if ${TEST} -f ${DESTDIR}${mandir}/bibclean.${manext} ; \ |
| 1495 |
then \ |
| 1496 |
${MV} ${DESTDIR}${mandir}/bibclean.${manext} \ |
| 1497 |
${DESTDIR}${mandir}/bibclean.old.${manext} ; \ |
| 1498 |
fi |
| 1499 |
${CP} ${CPFLAGS} bibclean.man ${DESTDIR}${mandir}/bibclean.${manext} |
| 1500 |
-${RM} ${DESTDIR}${mandir}/../cat${manext}/bibclean.${manext} |
| 1501 |
-${RM} ${DESTDIR}${mandir}/bibclean-${VERSION}.${manext} |
| 1502 |
${LN} ${DESTDIR}${mandir}/bibclean.${manext} ${DESTDIR}${mandir}/bibclean-${VERSION}.${manext} || \ |
| 1503 |
${CP} ${CPFLAGS} ${DESTDIR}${mandir}/bibclean.${manext} ${DESTDIR}${mandir}/bibclean-${VERSION}.${manext} |
| 1504 |
${CHMOD} 664 ${DESTDIR}${mandir}/bibclean.${manext} |
| 1505 |
|
| 1506 |
install-ftp: uninstall-ftp install-ftp.time |
| 1507 |
|
| 1508 |
install-ftp.time: dist |
| 1509 |
${TAR} tvf bibclean-${VERSION}.tar >${FTPDIR}/bibclean-${VERSION}.tar-lst |
| 1510 |
${GZIP} <bibclean-${VERSION}.tar \ |
| 1511 |
>${FTPDIR}/bibclean-${VERSION}.tar.gz |
| 1512 |
${CP} ${CPFLAGS} bibclean-${VERSION}.jar ${FTPDIR} |
| 1513 |
${JAR} tvf bibclean-${VERSION}.jar \ |
| 1514 |
2>${FTPDIR}/bibclean-${VERSION}.jar-lst |
| 1515 |
${CP} ${CPFLAGS} bibclean-${VERSION}.zip ${FTPDIR} |
| 1516 |
${CP} ${CPFLAGS} bibclean-${VERSION}.zip-lst ${FTPDIR} |
| 1517 |
${CP} ${CPFLAGS} bibclean-${VERSION}.zoo ${FTPDIR} |
| 1518 |
${CP} ${CPFLAGS} bibclean-${VERSION}.zoo-lst ${FTPDIR} |
| 1519 |
${LS} -l ${FTPDIR}/bibclean* |
| 1520 |
${DATE} >install-ftp.time |
| 1521 |
|
| 1522 |
lint: |
| 1523 |
${LINT} ${LINTFLAGS} ${SRC} |
| 1524 |
|
| 1525 |
uninstall: uninstall-exe uninstall-ini uninstall-man |
| 1526 |
-${RM} install.time |
| 1527 |
|
| 1528 |
uninstall-exe: |
| 1529 |
-${RM} ${DESTDIR}${bindir}/${BIBCLEAN} ${DESTDIR}${bindir}/bibclean-${VERSION}${EXEEXT} |
| 1530 |
-${RM} ${DESTDIR}${bindir}/${BIBISBN} ${DESTDIR}${bindir}/bibisbn-${VERSION}${EXEEXT} |
| 1531 |
|
| 1532 |
uninstall-ini: |
| 1533 |
-${RM} ${DESTDIR}${initdir}/bibclean.ini \ |
| 1534 |
${DESTDIR}${initdir}/bibclean.isbn \ |
| 1535 |
${DESTDIR}${initdir}/bibclean.key |
| 1536 |
|
| 1537 |
uninstall-man: |
| 1538 |
-${RM} ${DESTDIR}${mandir}/bibclean.${manext} \ |
| 1539 |
${DESTDIR}${mandir}/bibclean-${VERSION}.${manext} \ |
| 1540 |
${DESTDIR}${mandir}/../cat${manext}/bibclean.${manext} \ |
| 1541 |
${DESTDIR}${mandir}/../cat${manext}/bibclean-${VERSION}.${manext} |
| 1542 |
|
| 1543 |
uninstall-ftp: |
| 1544 |
-${RM} ${FTPDIR}/bibclean-${VERSION}.tar |
| 1545 |
-${RM} ${FTPDIR}/bibclean-${VERSION}.tar-lst |
| 1546 |
-${RM} ${FTPDIR}/bibclean-${VERSION}.zip |
| 1547 |
-${RM} ${FTPDIR}/bibclean-${VERSION}.zip-lst |
| 1548 |
-${RM} ${FTPDIR}/bibclean-${VERSION}.zoo |
| 1549 |
-${RM} ${FTPDIR}/bibclean-${VERSION}.zoo-lst |
| 1550 |
-${RM} install-ftp.time |
| 1551 |
|
| 1552 |
### Prevent GNU make v3 from overflowing arg limit on SysV. |
| 1553 |
.NOEXPORT: |