summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvi2tty/Makefile.am
blob: d1aa8dfc6aae555269e43c9ce9b106ad5285ece3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## Makefile.am for the TeX Live subdirectory texk/dvi2tty/
##
## Copyright (C) 2009-2012 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4

## We want to re-distribute the whole original dvi2tty source tree.
##
EXTRA_DIST = $(DVI2TTY_TREE)

## Patches applied to the original source tree
##
EXTRA_DIST += $(DVI2TTY_TREE)-PATCHES

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir) -name .svn`

INCLUDES = $(PTEXENC_INCLUDES) $(KPATHSEA_INCLUDES)
AM_CPPFLAGS = -DKPATHSEA
AM_CFLAGS = $(WARNING_CFLAGS)

LDADD = $(KPATHSEA_LIBS)

bin_PROGRAMS = disdvi dvi2tty

disdvi_SOURCES = \
	$(DVI2TTY_TREE)/commands.h \
	$(DVI2TTY_TREE)/disdvi.c

$(disdvi_OBJECTS): $(KPATHSEA_DEPEND)

dvi2tty_SOURCES = \
	$(DVI2TTY_TREE)/commands.h \
	$(DVI2TTY_TREE)/dvi2tty.c \
	$(DVI2TTY_TREE)/dvi2tty.h \
	$(DVI2TTY_TREE)/dvistuff.c

$(dvi2tty_OBJECTS): $(KPATHSEA_DEPEND) $(PTEXENC_DEPEND)

dvi2tty_LDADD = $(PTEXENC_LIBS) $(LDADD)

man1_MANS = \
	$(DVI2TTY_TREE)/disdvi.1 \
	$(DVI2TTY_TREE)/dvi2tty.1

## Rebuild libkpathsea & libptexenc
@KPATHSEA_RULE@
@PTEXENC_RULE@

## Tests.
##
TESTS = disdvi.test dvi2tty.test

TESTS_ENVIRONMENT = DVI2TTY_TREE=$(DVI2TTY_TREE)
EXTRA_DIST += $(TESTS)

## disdvi.test
EXTRA_DIST += ligtest.dis
DISTCLEANFILES = ligtest.dout
## dvi2tty.test
EXTRA_DIST += ligtest.tty test.tty testc.tty tests.tty testu.tty
DISTCLEANFILES += ligtest.out test.out testc.out tests.out testu.out