| 1 |
## $Id: Makefile.am 69145 2023-12-16 06:51:56Z takuji $ |
| 2 |
## Makefile.am for the TeX Live subdirectory texk/bibtex-x/ |
| 3 |
## |
| 4 |
## Copyright 2017-2022 Karl Berry <[email protected]> |
| 5 |
## Copyright 2009-2015 Peter Breitenlohner <[email protected]> |
| 6 |
## You may freely use, modify and/or distribute this file. |
| 7 |
## |
| 8 |
AM_CPPFLAGS = $(KPATHSEA_INCLUDES) -DUNIX -DKPATHSEA |
| 9 |
AM_CFLAGS = $(WARNING_CFLAGS) |
| 10 |
|
| 11 |
EXTRA_PROGRAMS = bibtex8 bibtexu |
| 12 |
|
| 13 |
bin_PROGRAMS = |
| 14 |
if BIBTEX8 |
| 15 |
bin_PROGRAMS += bibtex8 |
| 16 |
endif BIBTEX8 |
| 17 |
if BIBTEXU |
| 18 |
bin_PROGRAMS += bibtexu |
| 19 |
endif BIBTEXU |
| 20 |
|
| 21 |
common_sources = \ |
| 22 |
bibtex-1.c \ |
| 23 |
bibtex-2.c \ |
| 24 |
bibtex-3.c \ |
| 25 |
bibtex-4.c \ |
| 26 |
bibtex.c \ |
| 27 |
bibtex.h \ |
| 28 |
datatype.h \ |
| 29 |
gblprocs.h \ |
| 30 |
gblvars.h \ |
| 31 |
utils.c \ |
| 32 |
utils.h \ |
| 33 |
version.h \ |
| 34 |
sysdep.h |
| 35 |
|
| 36 |
bibtex8_SOURCES = $(common_sources) |
| 37 |
bibtex8_CPPFLAGS = $(AM_CPPFLAGS) -DSUPPORT_8BIT |
| 38 |
$(bibtex8_OBJECTS): $(KPATHSEA_DEPEND) |
| 39 |
bibtex8_LDADD = $(KPATHSEA_LIBS) |
| 40 |
|
| 41 |
bibtexu_SOURCES = $(common_sources) |
| 42 |
# Force Automake to use CXXLD for linking |
| 43 |
nodist_EXTRA_bibtexu_SOURCES = dummy.cxx |
| 44 |
bibtexu_CPPFLAGS = $(AM_CPPFLAGS) $(ICU_INCLUDES) -DUTF_8 |
| 45 |
$(bibtexu_OBJECTS): $(KPATHSEA_DEPEND) $(ICU_DEPEND) |
| 46 |
bibtexu_LDADD = $(KPATHSEA_LIBS) $(ICU_LIBS) $(PTHREAD_LIB) $(ICU_LIBS_EXTRA) |
| 47 |
|
| 48 |
dist_man1_MANS = bibtex8.1 bibtexu.1 |
| 49 |
|
| 50 |
## Rebuild libkpathsea |
| 51 |
@KPATHSEA_RULE@ |
| 52 |
## Rebuild libsicuxxx |
| 53 |
@ICU_RULE@ |
| 54 |
|
| 55 |
### BibTeX8 distribution |
| 56 |
|
| 57 |
csfdir = $(datarootdir)/texmf-dist/bibtex/csf/base |
| 58 |
|
| 59 |
dist_csf_DATA = \ |
| 60 |
csf/88591lat.csf \ |
| 61 |
csf/88591sca.csf \ |
| 62 |
csf/ascii.csf \ |
| 63 |
csf/cp437lat.csf \ |
| 64 |
csf/cp850lat.csf \ |
| 65 |
csf/cp850sca.csf \ |
| 66 |
csf/cp866rus.csf \ |
| 67 |
csf/csfile.txt |
| 68 |
|
| 69 |
btdocdir = $(datarootdir)/texmf-dist/doc/bibtex8 |
| 70 |
|
| 71 |
dist_btdoc_DATA = \ |
| 72 |
00bibtex8-readme.txt \ |
| 73 |
00bibtex8-history.txt \ |
| 74 |
file_id.diz \ |
| 75 |
csf/csfile.txt |
| 76 |
|
| 77 |
### BibTeXu distribution |
| 78 |
|
| 79 |
btudocdir = $(datarootdir)/texmf-dist/doc/bibtexu |
| 80 |
btuexdir = $(datarootdir)/texmf-dist/doc/bibtexu/examples |
| 81 |
|
| 82 |
dist_btudoc_DATA = \ |
| 83 |
01bibtexu-doc/README |
| 84 |
|
| 85 |
dist_btuex_DATA = \ |
| 86 |
01bibtexu-doc/examples/test.bbl \ |
| 87 |
01bibtexu-doc/examples/test.bib \ |
| 88 |
01bibtexu-doc/examples/test.pdf \ |
| 89 |
01bibtexu-doc/examples/test.tex |
| 90 |
|
| 91 |
## Tests. |
| 92 |
## |
| 93 |
bibtex8_tests = tests/bibtex8.test tests/bibtex8u-mem.test \ |
| 94 |
tests/bibtex8-sort.test tests/bibtex8-char.test |
| 95 |
bibtexu_tests = tests/bibtexu.test tests/bibtexu-basic.test \ |
| 96 |
tests/bibtexu-range.test tests/bibtexu-yannis.test \ |
| 97 |
tests/bibtexu-sort.test tests/bibtexu-char.test \ |
| 98 |
tests/bibtexu-iscjk.test |
| 99 |
|
| 100 |
TESTS = |
| 101 |
if BIBTEX8 |
| 102 |
TESTS += $(bibtex8_tests) |
| 103 |
endif BIBTEX8 |
| 104 |
tests/bibtex8.log tests/bibtex8-mem.log tests/sort.log: bibtex8$(EXEEXT) |
| 105 |
if BIBTEXU |
| 106 |
TESTS += $(bibtexu_tests) |
| 107 |
endif BIBTEXU |
| 108 |
tests/bibtexu.log tests/bibtexu-basic.log tests/bibtexu-range.log \ |
| 109 |
tests/bibtexu-yannis.log: bibtexu$(EXEEXT) |
| 110 |
|
| 111 |
EXTRA_DIST = $(bibtex8_tests) $(bibtexu_tests) |
| 112 |
DISTCLEANFILES = |
| 113 |
## tests/bibtex8.test |
| 114 |
EXTRA_DIST += tests/exampl.bbl |
| 115 |
DISTCLEANFILES += tests/xexampl.aux tests/xexampl.bbl tests/xexampl.blg |
| 116 |
## tests/bibtexu.test |
| 117 |
## |
| 118 |
## tests/bibtex8u-mem.test |
| 119 |
DISTCLEANFILES += tests/memtest.bib tests/memtest?.* tests/memtestu?.* |
| 120 |
## |
| 121 |
## tests/bibtex8-sort.test |
| 122 |
EXTRA_DIST += tests/sort.aux \ |
| 123 |
tests/sort1.bbl tests/sort2.bbl tests/sort3.bbl \ |
| 124 |
tests/sort1.csf tests/sort2.csf tests/sort3.csf \ |
| 125 |
tests/testdata.bib tests/teststyle.bst \ |
| 126 |
tests/sort1.bbl tests/sort2.bbl tests/sort3.bbl \ |
| 127 |
tests/casea.aux tests/casea.bbl tests/testcasea.bib tests/testcase.bst |
| 128 |
DISTCLEANFILES += tests/xsort[123].aux tests/xsort[123].bbl tests/xsort[123].blg \ |
| 129 |
tests/xcase[123].aux tests/xcase[123].bbl tests/xcase[123].blg |
| 130 |
## |
| 131 |
## tests/bibtex8-char.test |
| 132 |
EXTRA_DIST += tests/perioda.aux tests/perioda.bbl tests/testperioda.bib tests/testperiod.bst \ |
| 133 |
tests/substra.aux tests/substra.bbl tests/testsubstra.bib tests/testsubstr.bst \ |
| 134 |
tests/txtprfxa.aux tests/txtprfxa.bbl tests/testtxtprfx.bst \ |
| 135 |
tests/widtha.aux tests/widtha.bbl tests/testwidtha.bib tests/testwidth.bst \ |
| 136 |
tests/chara.aux tests/chara.bbl tests/testchara.bib tests/testchar.bst \ |
| 137 |
tests/namea.aux tests/namea.bbl tests/ltnbib.bib tests/testname.bst |
| 138 |
DISTCLEANFILES += tests/xsubstra.aux tests/xsubstra.bbl tests/xsubstra.blg \ |
| 139 |
tests/xtxtprfxa.aux tests/txtprfxa.bbl tests/xtxtprfxa.blg \ |
| 140 |
tests/xwidtha.aux tests/widtha.bbl tests/xwidtha.blg \ |
| 141 |
tests/xchara.aux tests/xchara.bbl tests/xchara.blg \ |
| 142 |
tests/xnamea.aux tests/xnamea.bbl tests/xnamea.blg |
| 143 |
## |
| 144 |
## tests/bibtexu-basic.test |
| 145 |
EXTRA_DIST += tests/ubasic.aux tests/ubasic.bbl tests/ubasic.bib |
| 146 |
DISTCLEANFILES += tests/xubasic.aux tests/xubasic.bbl tests/xubasic.blg |
| 147 |
## |
| 148 |
## tests/bibtexu-range.test |
| 149 |
EXTRA_DIST += tests/urange.aux tests/urange.bbl tests/urange.bib |
| 150 |
DISTCLEANFILES += tests/xurange.aux tests/xurange.bbl tests/xurange.blg |
| 151 |
## |
| 152 |
## tests/bibtexu-yannis.test |
| 153 |
EXTRA_DIST += tests/yannis.aux tests/yannis.bbl tests/yannis.bib |
| 154 |
DISTCLEANFILES += tests/xyannis.aux tests/xyannis.bbl tests/xyannis.blg |
| 155 |
## |
| 156 |
## tests/bibtexu-sort.test |
| 157 |
EXTRA_DIST += tests/sortu.aux \ |
| 158 |
tests/sortu-az.bbl tests/sortu-da.bbl tests/sortu-en.bbl \ |
| 159 |
tests/sortu-fi.bbl tests/sortu-tr.bbl tests/testsortu.bib \ |
| 160 |
tests/caseu.aux tests/caseu.bbl tests/testcaseu.bib |
| 161 |
DISTCLEANFILES += tests/xsortu-*.aux tests/xsortu-*.bbl tests/xsortu-*.blg \ |
| 162 |
tests/xcaseu.aux tests/xcaseu.bbl tests/xcaseu.blg |
| 163 |
## |
| 164 |
## tests/bibtexu-char.test |
| 165 |
EXTRA_DIST += tests/periodu.aux tests/periodu.bbl tests/testperiodu.bib \ |
| 166 |
tests/substru.aux tests/substru.bbl tests/testsubstru.bib \ |
| 167 |
tests/txtprfxu.aux tests/txtprfxu.bbl \ |
| 168 |
tests/widthu.aux tests/widthu.bbl tests/testwidthu.bib \ |
| 169 |
tests/charu.aux tests/charu.bbl tests/testcharu.bib \ |
| 170 |
tests/nameu.aux tests/nameu.bbl tests/mlgbib.bib |
| 171 |
DISTCLEANFILES += tests/xperiodu.aux tests/xperiodu.bbl tests/xperiodu.blg \ |
| 172 |
tests/xsubstru.aux tests/xsubstru.bbl tests/xsubstru.blg \ |
| 173 |
tests/xtxtprfxu.aux tests/txtprfxu.bbl tests/xtxtprfxu.blg \ |
| 174 |
tests/xwidthu.aux tests/widthu.bbl tests/xwidthu.blg \ |
| 175 |
tests/xcharu.aux tests/xcharu.bbl tests/xcharu.blg \ |
| 176 |
tests/xnameu.aux tests/xnameu.bbl tests/xnameu.blg |
| 177 |
## |
| 178 |
## tests/bibtexu-iscjk.test |
| 179 |
EXTRA_DIST += tests/iscjku.aux tests/iscjku.bbl tests/testiscjku.bib tests/testiscjk.bst |
| 180 |
DISTCLEANFILES += tests/xiscjku.aux tests/xiscjku.bbl tests/xiscjku.blg |
| 181 |
|
| 182 |
## Not used |
| 183 |
## |
| 184 |
EXTRA_DIST += \ |
| 185 |
dos-dj.mak \ |
| 186 |
dos-emx.mak \ |
| 187 |
os2.mak \ |
| 188 |
unix.mak |