1169695Skan# Makefile.sub for `groffer' (integration into the `groff' source tree) 2169695Skan 3169695Skan# File position: <groff-source>/contrib/groffer/Makefile.sub 4169695Skan 5169695Skan# Copyright (C) 2001,2002,2005 Free Software Foundation, Inc. 6169695Skan# Written by Werner Lemberg <wl@gnu.org> and Bernd Warken. 7169695Skan 8169695Skan# Last update: 15 August 2005 9169695Skan 10169695Skan# This file is part of `groffer' which is part of `groff'. 11169695Skan 12169695Skan# `groff' is free software; you can redistribute it and/or modify it 13169695Skan# under the terms of the GNU General Public License as published by 14169695Skan# the Free Software Foundation; either version 2, or (at your option) 15169695Skan# any later version. 16169695Skan 17169695Skan# `groff' is distributed in the hope that it will be useful, but 18169695Skan# WITHOUT ANY WARRANTY; without even the implied warranty of 19169695Skan# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20169695Skan# General Public License for more details. 21169695Skan 22169695Skan# You should have received a copy of the GNU General Public License 23169695Skan# along with `groff'; see the files COPYING and LICENSE in the top 24169695Skan# directory of the `groff' source. If not, write to the Free Software 25169695Skan# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 26169695Skan 27169695Skan######################################################################## 28169695Skan 29169695SkanMAN1=groffer.n 30169695SkanCLEANADD=groffer 31169695Skan 32169695Skan# not all make programs have $(RM) predefined. 33169695SkanRM=rm -f 34169695Skan 35169695Skanall: groffer 36169695Skan 37169695Skangroffer: groffer.sh groffer2.sh $(SH_DEPS_SED_SCRIPT) 38169695Skan $(RM) $@; 39169695Skan sed -f $(SH_DEPS_SED_SCRIPT) \ 40169695Skan -e "s|@g@|$(g)|g" \ 41169695Skan -e "s|@BINDIR@|$(bindir)|g" \ 42169695Skan -e "s|@libdir@|$(libdir)|g" \ 43169695Skan -e "s|@VERSION@|$(version)$(revision)|g" \ 44169695Skan -e $(SH_SCRIPT_SED_CMD) $(srcdir)/groffer.sh >$@; 45169695Skan chmod +x $@ 46169695Skan 47169695Skaninstall_data: groffer 48169695Skan -test -d $(bindir) || $(mkinstalldirs) $(bindir) 49169695Skan -$(RM) $(bindir)/groffer 50169695Skan $(INSTALL_SCRIPT) groffer $(bindir)/groffer 51169695Skan -test -d $(libdir)/groff/groffer || \ 52169695Skan $(mkinstalldirs) $(libdir)/groff/groffer 53169695Skan -$(RM) $(libdir)/groff/groffer/groffer2.sh 54169695Skan $(INSTALL_SCRIPT) $(srcdir)/groffer2.sh \ 55169695Skan $(libdir)/groff/groffer/groffer2.sh 56169695Skan 57169695Skanuninstall_sub: 58169695Skan -$(RM) $(bindir)/groffer 59169695Skan -$(RM) $(libdir)/groff/groffer/groffer2.sh 60169695Skan -rmdir $(libdir)/groff/groffer 61169695Skan