groff before CVS: release 1.05
[s-roff.git] / macros / Makefile
blobe9af24f06d8bd035f6c5c5f74262647ed7d62970
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 MACRODIR=/usr/local/lib/groff/tmac
21 MACROMODE=444
22 TMAC_S=gs
23 STRIP=sed -e '/%beginstrip%/,$$s/[ ]*\\".*//' -e '/^\.$$/d'
25 all:
26 clean:
27 distclean: clean
28 realclean: distclean
29 TAGS:
31 install.nobin: all
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; \
37 done
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; \
42 done
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; \
51 done
53 install.bin:
54 install: install.bin install.nobin