summaryrefslogtreecommitdiff
path: root/Build/source/texk/musixtnt/Makefile.am
blob: 28a3ab94380438d67a12903024feed4e8da38b8f (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
## $Id$
## Makefile.am for the TeX Live subdirectory texk/musixtnt/
##
## Copyright 2017 Karl Berry <tex-live@tug.org>
## Copyright 2015 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.

## We want to re-distribute the whole musixtnt source tree.
EXTRA_DIST = $(MUSIXTNT_TREE)

## Changes applied to the original source tree
EXTRA_DIST += TLpatches

# Files not to be distributed
include $(srcdir)/../../am/dist_hook.am
NEVER_NAMES += $(NEVER_NAMES_SUB)

AM_CPPFLAGS = -I$(top_srcdir)/$(MUSIXTNT_TREE) $(KPATHSEA_INCLUDES) -DKPATHSEA
AM_CFLAGS = $(WARNING_CFLAGS)

bin_PROGRAMS = msxlint

msxlint_SOURCES = \
	@MUSIXTNT_TREE@/msxlint.c \
	@MUSIXTNT_TREE@/utils.c

$(msxlint_OBJECTS): $(KPATHSEA_DEPEND)

LDADD = $(KPATHSEA_LIBS)

dist_man_MANS = \
	$(MUSIXTNT_TREE)/msxlint.1

## Rebuild libkpathsea
@KPATHSEA_RULE@

## Tests
AM_TESTS_ENVIRONMENT = testsrc="$(srcdir)/$(MUSIXTNT_TREE)/tests"; export testsrc;
#
TESTS = $(MUSIXTNT_TREE)/msxlint.test
$(MUSIXTNT_TREE)/msxlint.log: msxlint$(EXEEXT)

DISTCLEANFILES = linttest.*
NEVER_DIST += $(TESTS:.test=.log) $(TESTS:.test=.trs)