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