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
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 LICENSE. If not, write to the Free Software
18 #Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 MACRODIR
=/usr
/local
/lib
/groff
/tmac
23 STRIP
=sed
-e
'/%beginstrip%/,$$s/[ ]*\\".*//' -e
'/^\.$$/d'
32 -[ -d
$(MACRODIR
) ] || mkdir
$(MACRODIR
)
33 -for file in tmac.an tmac.andoc tmac.pic
; do \
34 rm -f
$(MACRODIR
)/$$file; \
35 cp
$$file $(MACRODIR
)/$$file; \
36 chmod
$(MACROMODE
) $(MACRODIR
)/$$file; \
38 -for file in tmac.e tmac.doc tmac.doc.old
; do \
39 rm -f
$(MACRODIR
)/$$file; \
40 $(STRIP
) $$file >$(MACRODIR
)/$$file; \
41 chmod
$(MACROMODE
) $(MACRODIR
)/$$file; \
43 -rm -f
$(MACRODIR
)/tmac.
$(TMAC_S
)
44 cp tmac.s
$(MACRODIR
)/tmac.
$(TMAC_S
)
45 chmod
$(MACROMODE
) $(MACRODIR
)/tmac.
$(TMAC_S
)
46 -[ -d
$(MACRODIR
)/mdoc
] || mkdir
$(MACRODIR
)/mdoc
47 -for file in doc-common doc-ditroff doc-nroff doc-syms
; do \
48 rm -f
$(MACRODIR
)/mdoc
/$$file; \
49 $(STRIP
) $$file >$(MACRODIR
)/mdoc
/$$file; \
50 chmod
$(MACROMODE
) $(MACRODIR
)/mdoc
/$$file; \
54 install: install.bin
install.nobin