Debian Codegraph @

texk/web2c/otps/Makefile.am

raw
1 ## Makefile.am for the TeX Live subdirectory texk/web2c/otps/
2 ##
3 ## Copyright (C) 2009-2015 Peter Breitenlohner <[email protected]>
4 ## You may freely use, modify and/or distribute this file.
5 ##
6 AM_CPPFLAGS = -I$(top_builddir)/.. -I$(top_srcdir) $(KPATHSEA_INCLUDES)
7 AM_CFLAGS = $(WARNING_CFLAGS)
8 AM_YFLAGS = -d -v
9
10 proglib = ../lib/lib.a
11
12 # Rebuild $(proglib)
13 $(proglib): ${top_srcdir}/lib/*.c
14 cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
15
16 ## Rebuild libkpathsea
17 @KPATHSEA_RULE@
18
19 otps_programs = otp2ocp outocp
20 otps_scripts = mkocp mkofm
21
22 noinst_HEADERS = otp.h routines.h yystype.h
23
24 if OTANGLE
25 bin_PROGRAMS = $(otps_programs)
26 if WIN32
27 SUBDIRS = win32
28 else !WIN32
29 bin_SCRIPTS = $(otps_scripts)
30 endif !WIN32
31 man1_MANS = $(otps_mans)
32 endif OTANGLE
33 EXTRA_PROGRAMS = $(otps_programs)
34 otps_mans = $(otps_programs:=.man) $(otps_scripts:=.man)
35
36 EXTRA_DIST = $(otps_scripts) $(otps_mans)
37
38 otp2ocp_SOURCES = \
39 otp-parser.y \
40 otp-lexer.l \
41 otp2ocp.c \
42 routines.c
43
44 DISTCLEANFILES = otp-parser.output
45
46 outocp_SOURCES = \
47 outocp.c
48
49 LDADD = $(proglib) $(KPATHSEA_LIBS)
50 otp2ocp_DEPENDENCIES = $(proglib) $(KPATHSEA_DEPEND)
51 outocp_DEPENDENCIES = $(proglib) $(KPATHSEA_DEPEND)
52
53 ## Tests
54 ##
55 if OTANGLE
56 TESTS = otp2ocp.test outocp.test
57 endif OTANGLE
58 otp2ocp.log: otp2ocp$(EXEEXT)
59 outocp.log: outocp$(EXEEXT)
60
61 EXTRA_DIST += \
62 otp2ocp.test \
63 outocp.test \
64 uni2lat.ocp \
65 uni2lat.otp \
66 uni2lat.out
67
68 ## Files generated by TESTS
69 ##
70 CLEANFILES = xuni2lat.ocp xuni2lat.out
71
72 ## Not used
73 ##
74 EXTRA_DIST += bugs.txt
75