groff before CVS: release 1.05
[s-roff.git] / Makefile.bd
blob6b12397916a5cc658b0f85b63079d2f6639dfa3b
1 #Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
2 #     Written by James Clark (jjc@jclark.uucp)
4 #This file is part of groff.
6 #groff is free software; you can redistribute it and/or modify it under
7 #the terms of the GNU General Public License as published by the Free
8 #Software Foundation; either version 1, or (at your option) any later
9 #version.
11 #groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 #WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 #FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 #for more details.
16 #You should have received a copy of the GNU General Public License along
17 #with groff; see the file LICENSE.  If not, write to the Free Software
18 #Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 # This is a Makefile for installing groff from a set of binaries and
21 # a source distribution.
23 # SRCDIR should point to the directory containing the groff
24 # source distribution.  You'll have to change this.
25 SRCDIR=/usr/jjc/groff
27 # Define PAGE to be letter if your PostScript printer uses 8.5x11 paper (USA);
28 # define it to be A4, if it uses A4 paper (rest of the world)
29 PAGE=A4
30 #PAGE=letter
32 # BINDIR says where to install the binaries.
33 BINDIR=/usr/local/bin
35 # PSPRINT is the command to use for printing a PostScript file
36 PSPRINT=lpr
38 # DVIPRINT is the command to use for printing a TeX dvi file
39 DVIPRINT=lpr -d
41 MANROOT=/usr/local/man
43 # MAN1EXT is the man section for user commands
44 MAN1EXT=1
45 MAN1DIR=$(MANROOT)/man$(MAN1EXT)
46 # MAN5EXT is the man section for file formats
47 MAN5EXT=5
48 MAN5DIR=$(MANROOT)/man$(MAN5EXT)
49 # MAN7EXT is the man section for macros
50 MAN7EXT=7
51 MAN7DIR=$(MANROOT)/man$(MAN7EXT)
53 # FONTDIR is the directory in which device sub-directories are to be installed.
54 # If this is not in the path
55 # `@FONTPATH@',
56 # you must set the GROFF_FONT_PATH environment variable.
57 FONTDIR=@FONTDIR@
59 # MACRODIR is the directory in which macro files should be installed.
60 # If this is not in the path `@MACROPATH@',
61 # you must set the GROFF_TMAC_PATH environment variable.
62 MACRODIR=@MACRODIR@
64 # HYPHENFILE is the file containing gtroff's hyphenation patterns.
65 # If you change it from `@HYPHENFILE@',
66 # you will need to set the GROFF_HYPHEN environment variable.
67 HYPHENFILE=@HYPHENFILE@
69 # If GROFFLIBDIR does not exist, then it will be created before MACRODIR,
70 # FONTDIR, or HYPHENFILE are created.
71 GROFFLIBDIR=@GROFFLIBDIR@
73 # DEVICE is the default device used by the groff shell script.
74 # If you want the binaries to use a default device other than `@DEVICE@'
75 # when not run using the groff shell script,
76 # you will need to set the GROFF_TYPESETTER environment variable.
77 DEVICE=@DEVICE@
79 # The groff ms macros will be available as -m$(TMAC_S).
80 # If you use `TMAC_S=s', you can use the Unix ms macros by using
81 # groff -ms -M/usr/lib/tmac.
82 TMAC_S=gs
84 GROFF=
86 # Comment this line out if you would rather use the shell version of the
87 # groff command.
88 GROFF=@GROFF@
90 STRIP=strip
91 BINARIES=gtroff gtbl gpic geqn gsoelim grodvi grotty grops psbb pfbtops \
92         grefer gindxbib glookbib lkbib addftinfo tfmtodit $(GROFF)
94 INSTALLFLAGS="PAGE=$(PAGE)" "BINDIR=$(BINDIR)" "PSPRINT=$(PSPRINT)" \
95         "DVIPRINT=$(DVIPRINT)" "MANROOT=$(MANROOT)" "MAN1EXT=$(MAN1EXT)" \
96         "MAN1DIR=$(MAN1DIR)" "MAN5EXT=$(MAN5EXT)" "MAN5DIR=$(MAN5DIR)" \
97         "MAN7EXT=$(MAN7EXT)" "MAN7DIR=$(MAN7DIR)" "FONTDIR=$(FONTDIR)" \
98         "GROFFLIBDIR=$(GROFFLIBDIR)" "MACRODIR=$(MACRODIR)" \
99         "HYPHENFILE=$(HYPHENFILE)" "DEVICE=$(DEVICE)" "GROFF=$(GROFF)" \
100         "TMAC_S=$(TMAC_S)"
102 install: $(BINARIES) checkversions FORCE
103         @echo Making install.nobin in $(SRCDIR)
104         @(cd $(SRCDIR); $(MAKE) $(INSTALLFLAGS) install.nobin)
105         cp $(BINARIES) $(BINDIR)
107 install.mm: FORCE
108         @echo Making install.mm in $(SRCDIR)
109         @(cd $(SRCDIR); $(MAKE) $(INSTALLFLAGS) install.mm) 
111 strip: FORCE
112         $(STRIP) $(BINARIES)
114 checkversions: VERSION $(SRCDIR)/VERSION FORCE
115         @echo Checking that the source and binary distributions \
116         have the same version...
117         cmp VERSION $(SRCDIR)/VERSION
119 FORCE: