|
root / base / usr / src / cmd / troff / nroff.d / terms.d / Makefile
Makefile Makefile 63 lines 1.4 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
#
# Copyright (c) 1989 by Sun Microsystems, Inc.
#
# cmd/troff/nroff.d/terms.d/Makefile
#

include 	../../../Makefile.cmd

ROOTNTERM =	$(ROOTSHLIB)/nterm

FILEMODE =	644

FILES1 =	tab.2631 tab.2631-c tab.2631-e tab.lp
FILES2 =	tab.300 tab.300-12 tab.300s tab.300s-12 tab.382	\
		tab.4000a tab.450 tab.450-12 tab.832
FILES3 =	tab.37 tab.8510 tab.X tab.tn300
FILES =		$(FILES1) $(FILES2) $(FILES3)

ROOTFILES =	$(FILES:%=$(ROOTNTERM)/%)

LNKFILES =	tab.300S tab.300S-12 tab.4000A
ROOTLNKFILES =	$(LNKFILES:%=$(ROOTNTERM)/%)

$(ROOTNTERM)/tab.300S :	ROOTLNKDEST = $(ROOTNTERM)/tab.300s
$(ROOTNTERM)/tab.300S-12 :	ROOTLNKDEST = $(ROOTNTERM)/tab.300s-12
$(ROOTNTERM)/tab.4000A :	ROOTLNKDEST = $(ROOTNTERM)/tab.4000a

TXTS =		README

.KEEP_STATE :

all :		$(TXTS) $(FILES)

install :	all $(ROOTNTERM) $(ROOTFILES) $(ROOTLNKFILES)

# Hammerhead: Use static pattern rules for GNU Make compatibility
$(FILES1) : tab.% : a.% b.lp
	cat $< b.lp >$@
$(FILES2) : tab.% : a.% b.300
	cat $< b.300 >$@
$(FILES3) : tab.% : ab.%
	cat $< > $@

$(ROOTNTERM) :
		$(INS.dir)

$(ROOTNTERM)/% :	%
		$(INS.file)

# Hammerhead: Explicit symlink rules for GNU Make compatibility
$(ROOTNTERM)/tab.300S: $(ROOTNTERM)/tab.300s
	-$(RM) $@; $(LN) $< $@
$(ROOTNTERM)/tab.300S-12: $(ROOTNTERM)/tab.300s-12
	-$(RM) $@; $(LN) $< $@
$(ROOTNTERM)/tab.4000A: $(ROOTNTERM)/tab.4000a
	-$(RM) $@; $(LN) $< $@

clean lint strip :

clobber:
	$(RM) $(FILES)