1 1.1 christos # Makefile.sub for `gdiffmk' (integration into the groff source tree) 2 1.1 christos 3 1.1 christos # File position: <groff-source>/contrib/gdiffmk/Makefile.sub 4 1.1 christos 5 1.1 christos # Last update: 12 December 2004 6 1.1 christos 7 1.1 christos # Copyright (C) 2004 Free Software Foundation, Inc. 8 1.1 christos # Written by Mike Bianchi <MBianchi (a] Foveal.com <mailto:MBianchi (a] Foveal.com>> 9 1.1 christos 10 1.1 christos # This file is part of the gdiffmk utility, which is part of groff. 11 1.1 christos 12 1.1 christos # groff is free software; you can redistribute it and/or modify it 13 1.1 christos # under the terms of the GNU General Public License as published by 14 1.1 christos # the Free Software Foundation; either version 2, or (at your option) 15 1.1 christos # any later version. 16 1.1 christos 17 1.1 christos # groff is distributed in the hope that it will be useful, but WITHOUT 18 1.1 christos # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 19 1.1 christos # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 20 1.1 christos # License for more details. 21 1.1 christos 22 1.1 christos # You should have received a copy of the GNU General Public License 23 1.1 christos # along with groff; see the files COPYING and LICENSE in the top 24 1.1 christos # directory of the groff source. If not, write to the Free Software 25 1.1 christos # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 26 1.1 christos 27 1.1 christos ######################################################################## 28 1.1 christos 29 1.1 christos MAN1=gdiffmk.n 30 1.1 christos CLEANADD=gdiffmk tests/runtests 31 1.1 christos 32 1.1 christos all: gdiffmk 33 1.1 christos 34 1.1 christos gdiffmk: gdiffmk.sh 35 1.1 christos rm -f $@; \ 36 1.1 christos sed -e "s|@BINDIR@|$(bindir)|g" \ 37 1.1 christos -e "s|@VERSION@|$(version)$(revision)|g" \ 38 1.1 christos -e $(SH_SCRIPT_SED_CMD) $(srcdir)/gdiffmk.sh >$@; \ 39 1.1 christos chmod +x $@ 40 1.1 christos 41 1.1 christos install_data: gdiffmk 42 1.1 christos -test -d $(bindir) || $(mkinstalldirs) $(bindir) 43 1.1 christos -rm -f $(bindir)/gdiffmk 44 1.1 christos $(INSTALL_SCRIPT) gdiffmk $(bindir)/gdiffmk 45 1.1 christos 46 1.1 christos uninstall_sub: 47 1.1 christos -rm -f $(bindir)/gdiffmk 48