/contrib/groff/contrib/groffer/Makefile.sub
Unknown | 60 lines | 46 code | 14 blank | 0 comment | 0 complexity | 59a7ede6524c4869fabe3a71e9553e95 MD5 | raw file
1# Makefile.sub for `groffer' (integration into the `groff' source tree) 2 3# File position: <groff-source>/contrib/groffer/Makefile.sub 4 5# Copyright (C) 2001,2002,2005 Free Software Foundation, Inc. 6# Written by Werner Lemberg <wl@gnu.org> and Bernd Warken. 7 8# Last update: 15 August 2005 9 10# This file is part of `groffer' 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 18# WITHOUT ANY WARRANTY; without even the implied warranty of 19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20# General Public 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 29MAN1=groffer.n 30CLEANADD=groffer 31 32# not all make programs have $(RM) predefined. 33RM=rm -f 34 35all: groffer 36 37groffer: groffer.sh groffer2.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|@libdir@|$(libdir)|g" \ 43 -e "s|@VERSION@|$(version)$(revision)|g" \ 44 -e $(SH_SCRIPT_SED_CMD) $(srcdir)/groffer.sh >$@; 45 chmod +x $@ 46 47install_data: groffer 48 -test -d $(bindir) || $(mkinstalldirs) $(bindir) 49 -$(RM) $(bindir)/groffer 50 $(INSTALL_SCRIPT) groffer $(bindir)/groffer 51 -test -d $(libdir)/groff/groffer || \ 52 $(mkinstalldirs) $(libdir)/groff/groffer 53 -$(RM) $(libdir)/groff/groffer/groffer2.sh 54 $(INSTALL_SCRIPT) $(srcdir)/groffer2.sh \ 55 $(libdir)/groff/groffer/groffer2.sh 56 57uninstall_sub: 58 -$(RM) $(bindir)/groffer 59 -$(RM) $(libdir)/groff/groffer/groffer2.sh 60 -rmdir $(libdir)/groff/groffer