42 # These represent the target termcap entries that we build from extra
43 # termcap and terminfo data. See extras/README.
44 #
45 EXTRATERM= rxvt-unicode
46 EXTRATC= $(EXTRATERM:%=extras/%.termcap)
47 EXTRATI= r/rxvt-unicode
48
49 include $(SRC)/data/Makefile.data
50
51 FILEMODE= 0644
52
53 ROOTTABDIR= $(ROOTSHLIB)/tabset
54 ROOTTERMDIR= $(ROOTSHLIB)/terminfo
55 DIRS= $(ROOTTERMDIR) $(ROOTTABDIR)
56
57 ROOTSYMLINK= $(ROOTETC)/termcap
58 RELROOTETC= ../usr/share/lib
59 ROOTLIBSYMLINK= $(ROOTLIB)/tabset
60 RELROOTLIB= ../share/lib
61
62 ROOTTABSET= $(TABSETSRC:%=$(ROOTTABDIR)/%)
63
64 ROOTEXTRATI= $(EXTRATI:%=$(ROOTTERMDIR)/%)
65
66 $(ROOTTABDIR)/%: tabset/%
67 $(INS.file)
68
69 .KEEP_STATE:
70
71 all: $(TERMCAPSRC) $(TERMINFOSRC)
72
73 $(DIRS):
74 $(INS.dir)
75
76 $(ROOTTERMDIR)/s/sun: $(TERMINFOSRC)
77 TERMINFO=$(ROOTTERMDIR) $(TIC) $(TERMINFOSRC) 2>/dev/null
78
79 $(ROOTSHLIB)/termcap: $(TERMCAPSRC) $(EXTRATC)
80 echo $(EXTRATERM) $(EXTRATC)
81 $(EGREP) -hv '^(#|$$)' $(TERMCAPSRC) $(EXTRATC) > $@
82
83 install: all $(ROOTTERMDIR) $(ROOTTERMDIR)/s/sun $(ROOTTABDIR) \
84 $(ROOTTABSET) $(ROOTSHLIB)/termcap $(ROOTSYMLINK) \
85 $(ROOTLIBSYMLINK) $(ROOTEXTRATI)
86
87 $(ROOTSYMLINK):
88 $(RM) $@; $(SYMLINK) $(RELROOTETC)/termcap $@
89
90 $(ROOTLIBSYMLINK):
91 $(RM) $@; $(SYMLINK) $(RELROOTLIB)/tabset $@
92
93 $(ROOTTERMDIR)/r/%: extras/%.terminfo
94 TERMINFO=$(ROOTTERMDIR) $(TIC) $< 2>/dev/null
95
96 clean clobber:
|
42 # These represent the target termcap entries that we build from extra
43 # termcap and terminfo data. See extras/README.
44 #
45 EXTRATERM= rxvt-unicode
46 EXTRATC= $(EXTRATERM:%=extras/%.termcap)
47 EXTRATI= r/rxvt-unicode
48
49 include $(SRC)/data/Makefile.data
50
51 FILEMODE= 0644
52
53 ROOTTABDIR= $(ROOTSHLIB)/tabset
54 ROOTTERMDIR= $(ROOTSHLIB)/terminfo
55 DIRS= $(ROOTTERMDIR) $(ROOTTABDIR)
56
57 ROOTSYMLINK= $(ROOTETC)/termcap
58 RELROOTETC= ../usr/share/lib
59 ROOTLIBSYMLINK= $(ROOTLIB)/tabset
60 RELROOTLIB= ../share/lib
61
62 ROOTSHSYMLINK= $(ROOTSH)/terminfo
63
64 ROOTTABSET= $(TABSETSRC:%=$(ROOTTABDIR)/%)
65
66 ROOTEXTRATI= $(EXTRATI:%=$(ROOTTERMDIR)/%)
67
68 $(ROOTTABDIR)/%: tabset/%
69 $(INS.file)
70
71 .KEEP_STATE:
72
73 all: $(TERMCAPSRC) $(TERMINFOSRC)
74
75 $(DIRS):
76 $(INS.dir)
77
78 $(ROOTTERMDIR)/s/sun: $(TERMINFOSRC)
79 TERMINFO=$(ROOTTERMDIR) $(TIC) $(TERMINFOSRC) 2>/dev/null
80
81 $(ROOTSHLIB)/termcap: $(TERMCAPSRC) $(EXTRATC)
82 echo $(EXTRATERM) $(EXTRATC)
83 $(EGREP) -hv '^(#|$$)' $(TERMCAPSRC) $(EXTRATC) > $@
84
85 install: all $(ROOTTERMDIR) $(ROOTTERMDIR)/s/sun $(ROOTTABDIR) \
86 $(ROOTTABSET) $(ROOTSHLIB)/termcap $(ROOTSYMLINK) \
87 $(ROOTLIBSYMLINK) $(ROOTEXTRATI) $(ROOTSHSYMLINK)
88
89 $(ROOTSYMLINK):
90 $(RM) $@; $(SYMLINK) $(RELROOTETC)/termcap $@
91
92 $(ROOTLIBSYMLINK):
93 $(RM) $@; $(SYMLINK) $(RELROOTLIB)/tabset $@
94
95 $(ROOTSHSYMLINK):
96 $(RM) $@; $(SYMLINK) $(RELROOTLIB)/terminfo $@
97
98 $(ROOTTERMDIR)/r/%: extras/%.terminfo
99 TERMINFO=$(ROOTTERMDIR) $(TIC) $< 2>/dev/null
100
101 clean clobber:
|