1 1.1 christos # Makefile.sub for `groffer' (integration into the `groff' source tree) 2 1.1 christos 3 1.1 christos # File position: <groff-source>/contrib/groffer/Makefile.sub 4 1.1 christos 5 1.1 christos # Copyright (C) 2001,2002,2005 Free Software Foundation, Inc. 6 1.1 christos # Written by Werner Lemberg <wl (a] gnu.org> and Bernd Warken. 7 1.1 christos 8 1.1 christos # Last update: 15 August 2005 9 1.1 christos 10 1.1 christos # This file is part of `groffer' which is part of `groff'. 11 1.1 christos 12 1.1 christos # `groff' is free software; you can redistribute it and/or modify it 13 1.1 christos # under the terms of the GNU General Public License as published by 14 1.1 christos # the Free Software Foundation; either version 2, or (at your option) 15 1.1 christos # any later version. 16 1.1 christos 17 1.1 christos # `groff' is distributed in the hope that it will be useful, but 18 1.1 christos # WITHOUT ANY WARRANTY; without even the implied warranty of 19 1.1 christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 1.1 christos # General Public License for more details. 21 1.1 christos 22 1.1 christos # You should have received a copy of the GNU General Public License 23 1.1 christos # along with `groff'; see the files COPYING and LICENSE in the top 24 1.1 christos # directory of the `groff' source. If not, write to the Free Software 25 1.1 christos # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 26 1.1 christos 27 1.1 christos ######################################################################## 28 1.1 christos 29 1.1 christos MAN1=groffer.n 30 1.1 christos CLEANADD=groffer 31 1.1 christos 32 1.1 christos # not all make programs have $(RM) predefined. 33 1.1 christos RM=rm -f 34 1.1 christos 35 1.1 christos all: groffer 36 1.1 christos 37 1.1 christos groffer: groffer.sh groffer2.sh $(SH_DEPS_SED_SCRIPT) 38 1.1 christos $(RM) $@; 39 1.1 christos sed -f $(SH_DEPS_SED_SCRIPT) \ 40 1.1 christos -e "s|@g@|$(g)|g" \ 41 1.1 christos -e "s|@BINDIR@|$(bindir)|g" \ 42 1.1 christos -e "s|@libdir@|$(libdir)|g" \ 43 1.1 christos -e "s|@VERSION@|$(version)$(revision)|g" \ 44 1.1 christos -e $(SH_SCRIPT_SED_CMD) $(srcdir)/groffer.sh >$@; 45 1.1 christos chmod +x $@ 46 1.1 christos 47 1.1 christos install_data: groffer 48 1.1 christos -test -d $(bindir) || $(mkinstalldirs) $(bindir) 49 1.1 christos -$(RM) $(bindir)/groffer 50 1.1 christos $(INSTALL_SCRIPT) groffer $(bindir)/groffer 51 1.1 christos -test -d $(libdir)/groff/groffer || \ 52 1.1 christos $(mkinstalldirs) $(libdir)/groff/groffer 53 1.1 christos -$(RM) $(libdir)/groff/groffer/groffer2.sh 54 1.1 christos $(INSTALL_SCRIPT) $(srcdir)/groffer2.sh \ 55 1.1 christos $(libdir)/groff/groffer/groffer2.sh 56 1.1 christos 57 1.1 christos uninstall_sub: 58 1.1 christos -$(RM) $(bindir)/groffer 59 1.1 christos -$(RM) $(libdir)/groff/groffer/groffer2.sh 60 1.1 christos -rmdir $(libdir)/groff/groffer 61