xref: /titanic_41/usr/src/cmd/troff/nroff.d/terms.d/Makefile (revision 3c112a2b34403220c06c3e2fcac403358cfba168)
1#
2# ident	"%Z%%M%	%I%	%E% SMI"
3#
4# Copyright (c) 1989 by Sun Microsystems, Inc.
5#
6# cmd/troff/nroff.d/terms.d/Makefile
7#
8
9include 	../../../Makefile.cmd
10
11ROOTNTERM =	$(ROOTSHLIB)/nterm
12
13FILEMODE =	644
14
15FILES1 =	tab.2631 tab.2631-c tab.2631-e tab.lp
16FILES2 =	tab.300 tab.300-12 tab.300s tab.300s-12 tab.382	\
17		tab.4000a tab.450 tab.450-12 tab.832
18FILES3 =	tab.37 tab.8510 tab.X tab.tn300
19FILES =		$(FILES1) $(FILES2) $(FILES3)
20
21ROOTFILES =	$(FILES:%=$(ROOTNTERM)/%)
22
23LNKFILES =	tab.300S tab.300S-12 tab.4000A
24ROOTLNKFILES =	$(LNKFILES:%=$(ROOTNTERM)/%)
25
26$(ROOTNTERM)/tab.300S :=	ROOTLNKDEST = $(ROOTNTERM)/tab.300s
27$(ROOTNTERM)/tab.300S-12 :=	ROOTLNKDEST = $(ROOTNTERM)/tab.300s-12
28$(ROOTNTERM)/tab.4000A :=	ROOTLNKDEST = $(ROOTNTERM)/tab.4000a
29
30TXTS =		README
31
32.KEEP_STATE :
33
34all :		$(TXTS) $(FILES)
35
36install :	all $(ROOTNTERM) $(ROOTFILES) $(ROOTLNKFILES)
37
38$(FILES1) :	$$(@:tab.%=a.%) b.lp
39		cat $(@:tab.%=a.%) b.lp >$@
40$(FILES2) :	$$(@:tab.%=a.%) b.300
41		cat $(@:tab.%=a.%) b.300 >$@
42$(FILES3) :	$$(@:tab.%=ab.%)
43		cat $(@:tab.%=ab.%) > $@
44
45$(ROOTNTERM) :
46		$(INS.dir)
47
48$(ROOTNTERM)/% :	%
49		$(INS.file)
50
51$(ROOTLNKFILES) :	$$(ROOTLNKDEST)
52			-$(RM) $@; $(LN) $(ROOTLNKDEST) $@
53
54clean clobber lint strip :
55