1 # Makefile.sub for `gdiffmk' (integration into the groff source tree)
3 # File position: <groff-source>/contrib/gdiffmk/Makefile.sub
5 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
6 # Written by Mike Bianchi <MBianchi@Foveal.com <mailto:MBianchi@Foveal.com>>
8 # This file is part of the gdiffmk utility, which is part of groff.
10 # groff is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
15 # groff is distributed in the hope that it will be useful, but WITHOUT
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
18 # License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 ########################################################################
26 MOSTLYCLEANADD=gdiffmk tests/runtests
32 sed -e "s|@BINDIR@|$(bindir)|g" \
33 -e "s|@VERSION@|$(version)$(revision)|g" \
34 -e $(SH_SCRIPT_SED_CMD) $(srcdir)/gdiffmk.sh >$@
38 -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
39 $(RM) $(DESTDIR)$(bindir)/gdiffmk
40 $(INSTALL_SCRIPT) gdiffmk $(DESTDIR)$(bindir)/gdiffmk
43 $(RM) $(DESTDIR)$(bindir)/gdiffmk
45 ########################################################################
47 ########################################################################