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