1 # Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
2 # Written by James Clark (jjc@jclark.com)
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 2, or (at your option) any later
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
16 # You should have received a copy of the GNU General Public License along
17 # with groff; see the file COPYING. If not, write to the Free Software
18 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 TROFF
=..
/src
/roff
/troff
/troff
-M..
/tmac
$(FFLAG
)
22 GROFF
=..
/src
/rof
/groff
/groff
-p
-e
-t
23 GROPS
=..
/src
/devices
/grops
/grops
$(FFLAG
)
24 DOCS
=meref.ps meintro.ps pic.ps pic.html homepage.html
25 MEMACROS
=..
/tmac
/tmac.e
26 SOELIM
=..
/src
/preproc
/soelim
/soelim
28 version
=`cat ../VERSION`
29 # No additional number for the groff archive if revision is zero
30 revision
=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' ../REVISION`
34 .SUFFIXES
: .tr .me .ms .ps .dit
41 | sed
-e
"s;@VERSION@;$(version)$(revision);" \
42 |
$(TROFF
) -Tps
$(FFLAG
) -me
>$@
48 export GROFF_TMAC_PATH
=..
/tmac
; \
49 sed
-e
"s;@VERSION@;$(version)$(revision);" $< \
50 |
$(GROFF
) -Thtml
$(FFLAG
) -U
-ms
>$@
53 export GROFF_TMAC_PATH
=..
/tmac
; \
54 sed
-e
"s;@VERSION@;$(version)$(revision);" $< \
55 |
$(GROFF
) -Tascii
$(FFLAG
) -U
-ms
-markup
>$@
58 export GROFF_TMAC_PATH
=..
/tmac
; \
59 sed
-e
"s;@VERSION@;$(version)$(revision);" $< \
60 |
$(GROFF
) -Tps
$(FFLAG
) -U
-ms
-markup
>$@
63 meintro.ps
: meintro.dit
65 # This production must use -p -e -t so pic/eqn processing is done
67 export GROFF_TMAC_PATH
=..
/tmac
; \
68 sed
-e
"s;@VERSION@;$(version)$(revision);" $< \
69 |
$(GROFF
) -Tps
$(FFLAG
) -ms
>$@
74 -rm -f
*.ps
*.html
*.ascii
*.png
*.gif
*.dit core
75 -rm -f
*.aux
*.cp
*.cps
*.cv
*.cn
*.
dvi *.fn
*.fns
*.ky
*.kys \
76 *.log
*.op
*.pg
*.pgs
*.ps
*.toc
*.tp
*.tps
*.tr
*.vr
*.vrs
83 -rm -f core
*~ \
#* junk temp grot