OSDN Git Service

branch: yandytex with kpathsea.
[putex/putex.git] / src / texsourc / kpathsea / kpathsea / win32 / Makefile.am
1 ## Makefile.am for the TeX Live subdirectory texk/kpathsea/win32/
2 ##
3 ## Copyright (C) 2011, 2012 Peter Breitenlohner <tex-live@tug.org>
4 ## You may freely use, modify and/or distribute this file.
5 ##
6 AM_CPPFLAGS = -I$(top_builddir)/.. -I$(top_srcdir)/..
7 AM_CPPFLAGS += -DWEB2C_KPSE_VERSION='"Web2C-$(WEB2CVERSION) Kpathsea-$(KPSEVERSION)"'
8 AM_CFLAGS = $(WARNING_CFLAGS)
9
10 # Build WIN32 replacements for Unix shell scripts.
11 bin_PROGRAMS = \
12         fmtutil \
13         mktexfmt \
14         mktexlsr \
15         mktexmf \
16         mktexpk \
17         mktextfm \
18         mktexupd
19
20 fmtutil_SOURCES = \
21         dirutil.c \
22         dirutil.h \
23         fmtutil.c \
24         mktexupd.c \
25         mktexupd.h
26
27 mktexfmt_SOURCES = \
28         mktexfmt.c
29
30 mktexlsr_SOURCES = \
31         dirutil.c \
32         dirutil.h \
33         mktexlsr.c
34
35 mktexmf_SOURCES = \
36         dirutil.c \
37         dirutil.h \
38         getdestdir.c \
39         getdestdir.h \
40         mktexmf.c \
41         mktexupd.c \
42         mktexupd.h
43
44 mktexpk_SOURCES = \
45         dirutil.c \
46         dirutil.h \
47         getdestdir.c \
48         getdestdir.h \
49         mktexpk.c \
50         mktexupd.c \
51         mktexupd.h
52
53 mktextfm_SOURCES = \
54         dirutil.c \
55         dirutil.h \
56         getdestdir.c \
57         getdestdir.h \
58         mktextfm.c \
59         mktexupd.c \
60         mktexupd.h
61
62 mktexupd_SOURCES = \
63         mktexupdmain.c \
64         mktexupd.c \
65         mktexupd.h
66
67 LDADD = ../libkpathsea.la
68
69 install-exec-hook:
70         cp -p $(DESTDIR)$(bindir)/mktexlsr$(EXEEXT) $(DESTDIR)$(bindir)/texhash$(EXEEXT)
71
72 uninstall-hook:
73         rm -f $(DESTDIR)$(bindir)/texhash$(EXEEXT)
74
75 ## Rebuild libkpathsea
76 ../libkpathsea.la: ${top_srcdir}/../kpathsea/*.[ch] ../paths.h
77         cd .. && $(MAKE) $(AM_MAKEFLAGS) rebuild
78 ../paths.h:
79         cd .. && $(MAKE) $(AM_MAKEFLAGS) rebuild
80
81 EXTRA_DIST = ChangeLog
82