580a9ba608399fa29431447ca53c56bedef8b945
[platform/upstream/groff.git] / 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 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
6 # Written by Mike Bianchi <MBianchi@Foveal.com <mailto:MBianchi@Foveal.com>>
7
8 # This file is part of the gdiffmk utility, which is part of groff.
9
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.
14
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.
19
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/>.
22
23 ########################################################################
24
25 MAN1=gdiffmk.n
26 MOSTLYCLEANADD=gdiffmk tests/runtests
27 RM=rm -f
28
29 all: gdiffmk
30
31 gdiffmk: gdiffmk.sh
32         sed -e "s|@BINDIR@|$(bindir)|g" \
33             -e "s|@VERSION@|$(version)$(revision)|g" \
34             -e $(SH_SCRIPT_SED_CMD)  $(srcdir)/gdiffmk.sh >$@
35         chmod +x $@
36
37 install_data: gdiffmk
38         -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
39         $(RM) $(DESTDIR)$(bindir)/gdiffmk
40         $(INSTALL_SCRIPT) gdiffmk $(DESTDIR)$(bindir)/gdiffmk
41
42 uninstall_sub:
43         $(RM) $(DESTDIR)$(bindir)/gdiffmk
44
45 ########################################################################
46 # Emacs settings
47 ########################################################################
48 #
49 # Local Variables:
50 # mode: makefile
51 # End: