Debian Codegraph @

texk/detex/Makefile.am

raw
1 ## $Id: Makefile.am 76190 2025-08-30 21:18:29Z karl $
2 ## Makefile.am for the TeX Live subdirectory texk/detex/
3 ##
4 ## Copyright 2017-2025 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 ## We want to re-distribute the whole original detex source tree.
9 EXTRA_DIST = $(DETEX_TREE)
10 ## Patches applied to the original source tree
11 EXTRA_DIST += TLpatches
12
13 # Files not to be distributed
14 include $(srcdir)/../../am/dist_hook.am
15 NEVER_NAMES += $(NEVER_NAMES_SUB)
16
17 AM_CPPFLAGS = -I$(top_srcdir)/$(DETEX_TREE) $(KPATHSEA_INCLUDES) -DNO_MALLOC_DECL -DKPATHSEA -Dlint
18 AM_CFLAGS = $(WARNING_CFLAGS)
19
20 ## The Makefile.in from 2002 by Thomas Esser applied the sed script
21 ## states.sed to detex.l in order to "convert long labels to a shorter
22 ## form so lex(1) won't overflow". This should no longer be needed.
23 ## Moreover, Automake distributes the `detex.c' generated from `detex.l'.
24
25 bin_PROGRAMS = detex
26
27 detex_SOURCES = \
28 @DETEX_TREE@/detex.h \
29 @DETEX_TREE@/detex.l
30
31 # If detex.l is modified, ylwrap will try to create detex.c in
32 # builddir/texk/detex/detex-src/, but the detex-src subdir doesn't exist
33 # there and neither ylwrap nor Automake creates it (as of 2025-08-30).
34 # So ensure that the directory exists before trying to build anything
35 # else. TL report, with further links to the Debian bug and patch:
36 # https://tug.org/pipermail/tlbuild/2025q3/005834.html
37 BUILT_SOURCES = detex-src/$(am__dirstamp)
38
39 LDADD = $(KPATHSEA_LIBS)
40
41 $(detex_OBJECTS): $(KPATHSEA_DEPEND)
42
43 ## Rebuild libkpathsea
44 @KPATHSEA_RULE@
45
46 man1_MANS = \
47 $(DETEX_TREE)/detex.man
48
49 dist_check_SCRIPTS = detex.test
50
51 TESTS = detex.test
52 detex.log: detex$(EXEEXT)
53
54 EXTRA_DIST += test.lout test.tex test.tout testverb.tex
55
56 CLEANFILES = test.out texmf.cnf
57