1 # Automake rules for 'gdiffmk' (integration into the groff source tree)
3 # File position: <groff-source>/contrib/gdiffmk/gdiffmk.am
5 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
6 # Written by Mike Bianchi <MBianchi@Foveal.com <mailto:MBianchi@Foveal.com>>
7 # Automake migration by Bertrand Garrigues
9 # Last update: 20 Aug 2015
11 # This file is part of the gdiffmk utility, which is part of groff.
13 # groff is free software; you can redistribute it and/or modify it
14 # under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
18 # groff is distributed in the hope that it will be useful, but WITHOUT
19 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
21 # License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26 ########################################################################
27 gdiffmk_srcdir = $(top_srcdir)/contrib/gdiffmk
28 bin_SCRIPTS += gdiffmk
29 TESTS += contrib/gdiffmk/tests/gdiffmk_tests.sh
30 man1_MANS += contrib/gdiffmk/gdiffmk.1
32 contrib/gdiffmk/gdiffmk.1.man \
33 contrib/gdiffmk/ChangeLog \
34 contrib/gdiffmk/README \
35 contrib/gdiffmk/gdiffmk.sh \
36 contrib/gdiffmk/tests/gdiffmk_tests.sh \
37 contrib/gdiffmk/tests/runtests.sh \
38 contrib/gdiffmk/tests/baseline \
39 contrib/gdiffmk/tests/baseline.6 \
40 contrib/gdiffmk/tests/baseline.6a \
41 contrib/gdiffmk/tests/baseline.7 \
42 contrib/gdiffmk/tests/baseline.8 \
43 contrib/gdiffmk/tests/baseline.9 \
44 contrib/gdiffmk/tests/baseline.9a \
45 contrib/gdiffmk/tests/baseline.10 \
46 contrib/gdiffmk/tests/file1 \
47 contrib/gdiffmk/tests/file2
49 gdiffmk: $(gdiffmk_srcdir)/gdiffmk.sh
50 $(AM_V_GEN)sed -e "s|[@]BINDIR[@]|$(bindir)|g" \
51 -e "s|[@]VERSION[@]|$(VERSION)|g" \
52 -e "s|[@]HAVE_TEST_EF_OPTION[@]|$(HAVE_TEST_EF_OPTION)|g" \
53 -e "s|[@]BASH_PROG[@]|$(BASH_PROG)|g" \
54 -e "s|[@]DIFF_PROG[@]|$(DIFF_PROG)|g" \
55 -e $(SH_SCRIPT_SED_CMD) $(gdiffmk_srcdir)/gdiffmk.sh \
59 clean-local: clean_gdiffmk_check
61 if test -d $(top_builddir)/contrib/gdiffmk/tests; then \
62 cd $(top_builddir)/contrib/gdiffmk/tests && \
63 $(abs_top_srcdir)/contrib/gdiffmk/tests/runtests.sh clean; \
67 ########################################################################
69 ########################################################################
72 # mode: makefile-automake
75 # vim: set filetype=automake textwidth=72: