blob: e6a0d60b8aa9e3b9310bc20e6bdda7ff1ba86c29 (
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
|
## Use `autoreconf' in top-level directory to recreate all
## autoconf/automake files.
## Or, call `automake Makefile' to create only Makefile.in.
## Copyright (C) 2004-2005 by Gour.
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program in the file COPYING; if not, write to the
## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
## Boston, MA 02110-1301 USA.
bin_PROGRAMS = tex2xindy
tex2xindy_SOURCES = tex2xindy.l
tex2xindy_LDADD = @LEXLIB@
man_MANS = tex2xindy.1
EXTRA_DIST = $(man_MANS)
CLEANFILES = tex2xindy.c
dist-hook:
rm -f $(distdir)/tex2xindy.c
IDENT_DATE = `ident $< | grep '\$$Id' | sed -e 's/^.*,v [^ ]* //' -e 's/ .*//' -e s:/:-:g`
IDENT_VERSION = `ident $< | grep '\$$Id' | sed -e 's/^.*,v //' -e 's/ .*//'`
POD2MAN = pod2man
$(srcdir)/tex2xindy.1: $(srcdir)/tex2xindy.l
-$(POD2MAN) --center '$(PACKAGE_NAME)' \
--name=$(basename $@ .1 | tr '[a-z]' '[A-Z]') \
--release "Version $(IDENT_VERSION)" \
--date "$(IDENT_DATE)" \
$< $@
|