1 # Makefile.sub for `gperl' (preprocessor for added Perl parts)
3 # File position: <groff-source>/contrib/gperl/Makefile.sub
5 # Copyright (C) 2014 Free Software Foundation, Inc.
6 # Written by Bernd Warken <groff-bernd.warken-72@web.de>.
8 # This file is part of `gperl' which is part of `groff'.
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 2 of the License, or
13 # (at your option) any later version.
15 # `groff' is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program. If not, see
22 # <http://www.gnu.org/licenses/gpl-2.0.html>.
24 ########################################################################
28 MOSTLYCLEANADD=gperl $(MAN1)
30 # not all make programs have $(RM) predefined.
36 sed -f "$(SH_DEPS_SED_SCRIPT)" \
38 -e "s|@BINDIR@|$(DESTDIR)$(bindir)|g" \
39 -e "s|@VERSION@|$(version)$(revision)|g" \
40 -e "$(SH_SCRIPT_SED_CMD)" \
41 $(srcdir)/gperl.pl >$@; \
46 -test -d $(DESTDIR)$(bindir) || $(mkinstalldirs) $(DESTDIR)$(bindir)
47 $(RM) $(DESTDIR)$(bindir)/gperl
48 $(INSTALL_SCRIPT) gperl $(DESTDIR)$(bindir)/gperl
52 $(RM) $(DESTDIR)$(bindir)/gperl
55 ########################################################################
57 ########################################################################