1151497Sru# Makefile.sub for `gdiffmk' (integration into the groff source tree) 2151497Sru 3151497Sru# File position: <groff-source>/contrib/gdiffmk/Makefile.sub 4151497Sru 5151497Sru# Last update: 12 December 2004 6151497Sru 7151497Sru# Copyright (C) 2004 Free Software Foundation, Inc. 8151497Sru# Written by Mike Bianchi <MBianchi@Foveal.com <mailto:MBianchi@Foveal.com>> 9151497Sru 10151497Sru# This file is part of the gdiffmk utility, which is part of groff. 11151497Sru 12151497Sru# groff is free software; you can redistribute it and/or modify it 13151497Sru# under the terms of the GNU General Public License as published by 14151497Sru# the Free Software Foundation; either version 2, or (at your option) 15151497Sru# any later version. 16151497Sru 17151497Sru# groff is distributed in the hope that it will be useful, but WITHOUT 18151497Sru# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 19151497Sru# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 20151497Sru# License for more details. 21151497Sru 22151497Sru# You should have received a copy of the GNU General Public License 23151497Sru# along with groff; see the files COPYING and LICENSE in the top 24151497Sru# directory of the groff source. If not, write to the Free Software 25151497Sru# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 26151497Sru 27151497Sru######################################################################## 28151497Sru 29151497SruMAN1=gdiffmk.n 30151497SruCLEANADD=gdiffmk tests/runtests 31151497Sru 32151497Sruall: gdiffmk 33151497Sru 34151497Srugdiffmk: gdiffmk.sh 35151497Sru rm -f $@; \ 36151497Sru sed -e "s|@BINDIR@|$(bindir)|g" \ 37151497Sru -e "s|@VERSION@|$(version)$(revision)|g" \ 38151497Sru -e $(SH_SCRIPT_SED_CMD) $(srcdir)/gdiffmk.sh >$@; \ 39151497Sru chmod +x $@ 40151497Sru 41151497Sruinstall_data: gdiffmk 42151497Sru -test -d $(bindir) || $(mkinstalldirs) $(bindir) 43151497Sru -rm -f $(bindir)/gdiffmk 44151497Sru $(INSTALL_SCRIPT) gdiffmk $(bindir)/gdiffmk 45151497Sru 46151497Sruuninstall_sub: 47151497Sru -rm -f $(bindir)/gdiffmk 48