#Copyright (C) 1990 Free Software Foundation, Inc.
# Written by James Clark (jjc@jclark.uucp)
#This file is part of groff.
#groff is free software; you can redistribute it and/or modify it under
#the terms of the GNU General Public License as published by the Free
#Software Foundation; either version 1, or (at your option) any later
#groff is distributed in the hope that it will be useful, but WITHOUT ANY
#WARRANTY; without even the implied warranty of MERCHANTABILITY or
#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
#You should have received a copy of the GNU General Public License along
#with groff; see the file LICENSE. If not, write to the Free Software
#Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# MAN1EXT is the man section for user commands
MAN1DIR
=$(MANROOT
)/man
$(MAN1EXT
)
# MAN5EXT is the man section for file formats
MAN5DIR
=$(MANROOT
)/man
$(MAN5EXT
)
# MAN7EXT is the man section for macros
MAN7DIR
=$(MANROOT
)/man
$(MAN7EXT
)
# FONTDIR says where to install dev*/*
FONTDIR
=/usr
/local
/lib
/groff
/font
# FONTPATH says where to look for dev*/*
FONTPATH
=.
:$(FONTDIR
):/usr
/lib
/font
MACRODIR
=/usr
/local
/lib
/groff
/tmac
# MACROPATH says where to look for tmac.* macro files
MACROPATH
=.
:$(MACRODIR
):/usr
/lib
/tmac
# DEVICE is the default device
# HYPHENFILE is the file containing the hyphenation patterns
HYPHENFILE
=/usr
/local
/lib
/groff
/hyphen
MAN1PAGES
=gtroff.n gpic.n grops.n groff.n geqn.n gtbl.n psbb.n gsoelim.n \
addftinfo.n grodvi.n grotty.n tfmtodit.n afmtodit.n grog.n
MAN5PAGES
=groff_font.n groff_out.n
MAN7PAGES
=groff_me.n groff_ms.n
MANPAGES
= $(MAN1PAGES
) $(MAN5PAGES
) $(MAN7PAGES
)
@sed
-e
"s;@HYPHENFILE@;$(HYPHENFILE);" \
-e
"s;@FONTDIR@;$(FONTDIR);" \
-e
"s;@FONTPATH@;$(FONTPATH);" \
-e
"s;@MACRODIR@;$(MACRODIR);" \
-e
"s;@MACROPATH@;$(MACROPATH);" \
-e
"s;@DEVICE@;$(DEVICE);" \
-e
"s;@MAN1EXT@;$(MAN1EXT);" \
-e
"s;@MAN5EXT@;$(MAN5EXT);" \
-e
"s;@MAN7EXT@;$(MAN7EXT);" \
-e
"s;@TMAC_S@;$(TMAC_S);" \
-e
"s;@VERSION@;`cat ../VERSION`;" \
install.nobin
: $(MANPAGES
)
-[ -d
$(MAN1DIR
) ] || mkdir
$(MAN1DIR
)
-[ -d
$(MAN5DIR
) ] || mkdir
$(MAN5DIR
)
-[ -d
$(MAN7DIR
) ] || mkdir
$(MAN7DIR
)
@for page in
$(MAN1PAGES
) ; do \
target
=$(MAN1DIR
)/`basename $$page .n`.
$(MAN1EXT
); \
echo cp
$$page $$target ; \
@for page in
$(MAN5PAGES
) ; do \
target
=$(MAN5DIR
)/`basename $$page .n`.
$(MAN5EXT
); \
echo cp
$$page $$target ; \
@for page in
$(MAN7PAGES
) ; do \
target
=$(MAN7DIR
)/`basename $$page .n`.
$(MAN7EXT
); \
echo cp
$$page $$target ; \
install: install.bin
install.nobin