… | |
… | |
13 | man1ext = 1 |
13 | man1ext = 1 |
14 | man3dir = @mandir@/man3 |
14 | man3dir = @mandir@/man3 |
15 | man3ext = 3 |
15 | man3ext = 3 |
16 | man7dir = @mandir@/man7 |
16 | man7dir = @mandir@/man7 |
17 | man7ext = 7 |
17 | man7ext = 7 |
18 | CC = @CC@ |
|
|
19 | CXX = @CXX@ |
|
|
20 | CPP = @CPP@ |
|
|
21 | MV = @MV@ |
|
|
22 | RM = @RM@ |
|
|
23 | RMF = @RM@ -f |
|
|
24 | CP = @CP@ |
|
|
25 | LN = @LN@ |
|
|
26 | SED = @SED@ |
|
|
27 | AWK = @AWK@ |
|
|
28 | ECHO = @ECHO@ |
|
|
29 | CMP = @CMP@ |
|
|
30 | TBL = @TBL@ |
|
|
31 | PERL = @PERL@ |
18 | PERL = @PERL@ |
32 | INSTALL = @INSTALL@ |
19 | INSTALL = @INSTALL@ |
33 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
20 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
34 | INSTALL_DATA = @INSTALL@ -m 644 |
21 | INSTALL_DATA = @INSTALL@ -m 644 |
35 | CXXFLAGS = @CXXFLAGS@ |
|
|
36 | CPPFLAGS = @CPPFLAGS@ @XPM_CPPFLAGS@ |
|
|
37 | LDFLAGS = @LDFLAGS@ |
|
|
38 | DEFS = @DEFS@ |
|
|
39 | LIBS = @LIBS@ |
|
|
40 | DINCLUDE = @DINCLUDE@ |
|
|
41 | DLIB = @DLIB@ |
|
|
42 | XINC = @X_CFLAGS@ @XPM_CFLAGS@ |
|
|
43 | XLIB = @X_LIBS@ @XPM_LIBS@ -lX11 @X_EXTRA_LIBS@ |
|
|
44 | COMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) $(DEBUG) $(DINCLUDE) $(XINC) -I$(basedir) -I$(srcdir) -I. |
|
|
45 | LINK = @LINKER@ $(LDFLAGS) |
|
|
46 | |
22 | |
47 | srcdir = @srcdir@ |
23 | srcdir = @srcdir@ |
48 | VPATH = @srcdir@ |
24 | VPATH = @srcdir@ |
49 | .PATH: @srcdir@ |
|
|
50 | |
|
|
51 | basedir = .. |
|
|
52 | thisdir = doc |
|
|
53 | |
25 | |
54 | first_rule: all |
26 | first_rule: all |
55 | dummy: |
27 | dummy: |
56 | |
28 | |
57 | #------------------------------------------------------------------------- |
29 | #------------------------------------------------------------------------- |
58 | |
30 | |
59 | all: |
|
|
60 | |
|
|
61 | SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;' \ |
31 | SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;' \ |
62 | -e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;' \ |
32 | -e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;' \ |
63 | -e 's%@@RXVT_DATE@@%$(DATE)%g;' \ |
33 | -e 's%@@RXVT_DATE@@%$(DATE)%g;' \ |
64 | -e 's%@@RXVT_LIBDIR@@%$(libdir)%g;' |
34 | -e 's%@@RXVT_LIBDIR@@%$(libdir)%g;' \ |
|
|
35 | -e 's%@@URXVT_NAME@@%urxvt%g;' |
|
|
36 | |
|
|
37 | all: |
|
|
38 | sed $(SEDREPLACE) < $(srcdir)/rxvt.1.man.in >rxvt.1.man |
|
|
39 | sed $(SEDREPLACE) < $(srcdir)/rxvtc.1.man.in >rxvtc.1.man |
|
|
40 | sed $(SEDREPLACE) < $(srcdir)/rxvtd.1.man.in >rxvtd.1.man |
|
|
41 | sed $(SEDREPLACE) < $(srcdir)/rxvt.7.man.in >rxvt.7.man |
|
|
42 | @IF_PERL@ sed $(SEDREPLACE) < $(srcdir)/rxvtperl.3.man.in >rxvtperl.3.man |
65 | |
43 | |
66 | rxvtperl.3.pod: ../src/urxvt.pm |
44 | rxvtperl.3.pod: ../src/urxvt.pm |
67 | cp $< $@ |
45 | cp $< $@ |
68 | |
46 | |
69 | %.tbl: %.pod |
47 | %.tbl: %.pod |
70 | ./podtbl <$< >$@ |
48 | $(srcdir)/podtbl <$< >$@ |
71 | |
49 | |
72 | %.1.man.in: %.1.tbl |
50 | %.1.man.in: %.1.tbl |
73 | pod2man -n rxvt -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@ |
51 | pod2man -n @@RXVT_NAME@@ -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@ |
74 | |
52 | |
75 | %.3.man.in: %.3.tbl |
53 | %.3.man.in: %.3.tbl |
76 | pod2man -n rxvt -r"$(VERSION)" -q\" -s3 -c "RXVT-UNICODE" <$< >$@ |
54 | pod2man -n @@RXVT_NAME@@ -r"$(VERSION)" -q\" -s3 -c "RXVT-UNICODE" <$< >$@ |
77 | |
55 | |
78 | %.7.man.in: %.7.tbl |
56 | %.7.man.in: %.7.tbl |
79 | pod2man -n rxvt -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@ |
57 | pod2man -n @@RXVT_NAME@@ -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@ |
80 | |
58 | |
81 | %.html: %.tbl |
59 | %.html: %.tbl |
82 | $(SED) $(SEDREPLACE) <$< | pod2html >$@ |
60 | sed $(SEDREPLACE) <$< | pod2xhtml --css http://res.tst.eu/pod.css >$@ |
83 | |
61 | |
84 | %.txt: %.tbl |
62 | %.txt: %.tbl |
85 | $(SED) $(SEDREPLACE) <$< | pod2text >$@ |
63 | sed $(SEDREPLACE) <$< | pod2text >$@ |
86 | |
64 | |
87 | ../README.configure: rxvt.7.tbl |
65 | ../README.configure: rxvt.7.tbl |
88 | $(SED) $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ |
66 | sed $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ |
89 | |
67 | |
90 | ../README.FAQ: rxvt.7.tbl |
68 | ../README.FAQ: rxvt.7.tbl |
91 | $(SED) $(SEDREPLACE) <$< | podselect -section "FREQUENTLY ASKED QUESTIONS" | pod2text >$@ |
69 | sed $(SEDREPLACE) <$< | podselect -section "RXVT-UNICODE\/URXVT FREQUENTLY ASKED QUESTIONS" | pod2text >$@ |
92 | |
70 | |
93 | tags allbin: |
71 | tags allbin: |
94 | |
72 | |
95 | alldoc: rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in rxvtperl.3.man.in \ |
73 | alldoc: rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in rxvtperl.3.man.in \ |
96 | rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt rxvtperl.3.txt \ |
74 | rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt rxvtperl.3.txt \ |
97 | rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html rxvtperl.3.html \ |
75 | rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html rxvtperl.3.html \ |
98 | ../README.configure ../README.FAQ |
76 | ../README.configure ../README.FAQ |
99 | infocmp -C rxvt-unicode >etc/rxvt-unicode.termcap |
77 | infocmp -C rxvt-unicode >$(srcdir)/etc/rxvt-unicode.termcap |
100 | |
78 | |
101 | clean: |
79 | clean: |
102 | $(RMF) *~ |
80 | rm -f *~ |
|
|
81 | rm -f rxvt.1.man rxvt.7.man rxvtc.1.man rxvtd.1.man rxvtperl.3.man |
103 | |
82 | |
|
|
83 | distclean: clean |
|
|
84 | rm -f Makefile |
|
|
85 | |
104 | realclean: clean |
86 | realclean: distclean |
|
|
87 | rm -f rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in rxvtperl.3.man.in |
|
|
88 | rm -f rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt rxvtperl.3.txt |
|
|
89 | rm -f rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html rxvtperl.3.html |
105 | $(RMF) tags ../README.configure ../README.FAQ |
90 | rm -f ../README.configure ../README.FAQ |
106 | $(RMF) rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in |
91 | rm -f $(srcdir)/etc/rxvt-unicode.termcap |
107 | $(RMF) rxvt.1.man rxvt.7.man rxvtc.1.man rxvtd.1.man |
|
|
108 | $(RMF) rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt |
|
|
109 | $(RMF) rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html |
|
|
110 | |
92 | |
111 | cleandir: realclean |
93 | cleandir: realclean |
112 | |
94 | |
113 | distclean: |
|
|
114 | |
|
|
115 | install: |
95 | install: |
116 | $(INSTALL) -d $(DESTDIR)$(man1dir) |
96 | $(INSTALL) -d $(DESTDIR)$(man1dir) |
117 | $(SED) $(SEDREPLACE) < rxvt.1.man.in >rxvt.1.man |
|
|
118 | $(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext) |
97 | $(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext) |
119 | $(SED) $(SEDREPLACE) < rxvtc.1.man.in >rxvtc.1.man |
|
|
120 | $(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) |
98 | $(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) |
121 | $(SED) $(SEDREPLACE) < rxvtd.1.man.in >rxvtd.1.man |
|
|
122 | $(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) |
99 | $(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) |
123 | $(INSTALL) -d $(DESTDIR)$(man7dir) |
100 | $(INSTALL) -d $(DESTDIR)$(man7dir) |
124 | $(SED) $(SEDREPLACE) < rxvt.7.man.in >rxvt.7.man |
|
|
125 | $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) |
101 | $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) |
126 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
102 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
127 | @IF_PERL@ $(SED) $(SEDREPLACE) < rxvtperl.3.man.in >rxvtperl.3.man |
|
|
128 | @IF_PERL@ $(INSTALL_DATA) rxvtperl.3.man $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
103 | @IF_PERL@ $(INSTALL_DATA) rxvtperl.3.man $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
129 | if test -x "@TIC@"; then if test -n "@TIC@"; then @TIC@ etc/rxvt-unicode.terminfo; fi; fi |
104 | if test -x "@TIC@"; then if test -n "@TIC@"; then @TIC@ $(srcdir)/etc/rxvt-unicode.terminfo; fi; fi |
130 | |
|
|
131 | uninstall: |
|
|
132 | -(cd $(mandir); $(RMF) $(RXVTNAME).$(manext) ) |
|
|
133 | |
105 | |
134 | distdepend: alldoc |
106 | distdepend: alldoc |
135 | |
107 | |
136 | # ------------------------------------------------------------------------ |
108 | # ------------------------------------------------------------------------ |
137 | # DO NOT DELETE: ugly dependency list follows |
109 | # DO NOT DELETE: ugly dependency list follows |