* release of groffer 0.9.18
[s-roff.git] / contrib / groffer / Makefile.sub
blob9771a044c8b0b698ec9b2356b38941d1f621f515
1 # Makefile.sub for `groffer' (integration into the groff source tree)
3 # File position: <groff-source>/contrib/groffer/Makefile.sub
5 # Last update: 30 June 2005
7 # Copyright (C) 2001,2002,2005 Free Software Foundation, Inc.
8 # Written by Werner Lemberg <wl@gnu.org>
10 # This file is part of groff.
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.
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.
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.
27 ########################################################################
29 MAN1=groffer.n
30 CLEANADD=groffer
32 # not all make programs have $(RM) predefined.
33 RM=rm -f
35 all: groffer
37 groffer: groffer.sh $(SH_DEPS_SED_SCRIPT)
38         $(RM) $@; \
39         sed -f $(SH_DEPS_SED_SCRIPT) \
40             -e "s|@g@|$(g)|g" \
41             -e "s|@BINDIR@|$(bindir)|g" \
42             -e "s|@VERSION@|$(version)$(revision)|g" \
43             -e $(SH_SCRIPT_SED_CMD) $(srcdir)/groffer.sh >$@; \
44         chmod +x $@
46 install_data: groffer
47         -test -d $(bindir) || $(mkinstalldirs) $(bindir)
48         -$(RM) $(bindir)/groffer
49         $(INSTALL_SCRIPT) groffer $(bindir)/groffer
51 uninstall_sub:
52         -$(RM) $(bindir)/groffer