summaryrefslogtreecommitdiffstats
path: root/contrib/gdiffmk/gdiffmk.am
blob: 46f224ba8b2f7d019f5c7a20d07f92341a1e8117 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
# Automake rules for 'gdiffmk' (integration into the groff source tree)
#
# Copyright (C) 2004-2020 Free Software Foundation, Inc.
# Written by Mike Bianchi <MBianchi@Foveal.com <mailto:MBianchi@Foveal.com>>
# Automake migration by Bertrand Garrigues
#
# This file is part of the gdiffmk utility, which is part of groff.
#
# groff 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 3 of the License, or
# (at your option) any later version.

# groff 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.  If not, see <http://www.gnu.org/licenses/>.

########################################################################
gdiffmk_srcdir = $(top_srcdir)/contrib/gdiffmk
bin_SCRIPTS += gdiffmk
TESTS += contrib/gdiffmk/tests/runtests.sh
man1_MANS += contrib/gdiffmk/gdiffmk.1
EXTRA_DIST += \
  contrib/gdiffmk/gdiffmk.1.man \
  contrib/gdiffmk/ChangeLog \
  contrib/gdiffmk/README \
  contrib/gdiffmk/gdiffmk.sh \
  contrib/gdiffmk/tests/runtests.sh \
  contrib/gdiffmk/tests/baseline \
  contrib/gdiffmk/tests/baseline.6 \
  contrib/gdiffmk/tests/baseline.6a \
  contrib/gdiffmk/tests/baseline.7 \
  contrib/gdiffmk/tests/baseline.8 \
  contrib/gdiffmk/tests/baseline.9 \
  contrib/gdiffmk/tests/baseline.9a \
  contrib/gdiffmk/tests/baseline.10 \
  contrib/gdiffmk/tests/file1 \
  contrib/gdiffmk/tests/file2

gdiffmk: $(gdiffmk_srcdir)/gdiffmk.sh
	$(AM_V_GEN)sed -e "s|[@]BINDIR[@]|$(bindir)|g" \
	    -e "s|[@]VERSION[@]|$(VERSION)|g" \
	    -e "s|[@]HAVE_TEST_EF_OPTION[@]|$(HAVE_TEST_EF_OPTION)|g" \
	    -e "s|[@]BASH_PROG[@]|$(BASH_PROG)|g" \
	    -e "s|[@]DIFF_PROG[@]|$(DIFF_PROG)|g" \
	    -e $(SH_SCRIPT_SED_CMD)  $(gdiffmk_srcdir)/gdiffmk.sh \
	    >$@ \
	&& chmod +x $@


# Local Variables:
# mode: makefile-automake
# fill-column: 72
# End:
# vim: set autoindent filetype=automake textwidth=72: