… | |
… | |
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 | RM = @RM@ |
|
|
19 | RMF = @RM@ -f |
|
|
20 | CP = @CP@ |
|
|
21 | LN = @LN@ |
|
|
22 | SED = @SED@ |
|
|
23 | ECHO = @ECHO@ |
|
|
24 | PERL = @PERL@ |
18 | PERL = @PERL@ |
25 | INSTALL = @INSTALL@ |
19 | INSTALL = @INSTALL@ |
26 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
20 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
27 | INSTALL_DATA = @INSTALL@ -m 644 |
21 | INSTALL_DATA = @INSTALL@ -m 644 |
28 | |
22 | |
29 | srcdir = @srcdir@ |
23 | srcdir = @srcdir@ |
30 | VPATH = @srcdir@ |
24 | VPATH = @srcdir@ |
31 | .PATH: @srcdir@ |
|
|
32 | |
|
|
33 | basedir = .. |
|
|
34 | thisdir = doc |
|
|
35 | |
25 | |
36 | first_rule: all |
26 | first_rule: all |
37 | dummy: |
27 | dummy: |
38 | |
28 | |
39 | #------------------------------------------------------------------------- |
29 | #------------------------------------------------------------------------- |
40 | |
30 | |
41 | all: |
|
|
42 | |
|
|
43 | SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;' \ |
31 | SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;' \ |
44 | -e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;' \ |
32 | -e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;' \ |
45 | -e 's%@@RXVT_DATE@@%$(DATE)%g;' \ |
33 | -e 's%@@RXVT_DATE@@%$(DATE)%g;' \ |
46 | -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 |
47 | |
43 | |
48 | rxvtperl.3.pod: ../src/urxvt.pm |
44 | rxvtperl.3.pod: ../src/urxvt.pm |
49 | $(CP) $< $@ |
45 | cp $< $@ |
50 | |
46 | |
51 | %.tbl: %.pod |
47 | %.tbl: %.pod |
52 | ./podtbl <$< >$@ |
48 | $(srcdir)/podtbl <$< >$@ |
53 | |
49 | |
54 | %.1.man.in: %.1.tbl |
50 | %.1.man.in: %.1.tbl |
55 | pod2man -n rxvt -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@ |
51 | pod2man -n @@RXVT_NAME@@ -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@ |
56 | |
52 | |
57 | %.3.man.in: %.3.tbl |
53 | %.3.man.in: %.3.tbl |
58 | pod2man -n rxvt -r"$(VERSION)" -q\" -s3 -c "RXVT-UNICODE" <$< >$@ |
54 | pod2man -n @@RXVT_NAME@@ -r"$(VERSION)" -q\" -s3 -c "RXVT-UNICODE" <$< >$@ |
59 | |
55 | |
60 | %.7.man.in: %.7.tbl |
56 | %.7.man.in: %.7.tbl |
61 | pod2man -n rxvt -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@ |
57 | pod2man -n @@RXVT_NAME@@ -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@ |
62 | |
58 | |
63 | %.html: %.tbl |
59 | %.html: %.tbl |
64 | $(SED) $(SEDREPLACE) <$< | pod2html >$@ |
60 | sed $(SEDREPLACE) <$< | pod2xhtml --css http://res.tst.eu/pod.css >$@ |
65 | |
61 | |
66 | %.txt: %.tbl |
62 | %.txt: %.tbl |
67 | $(SED) $(SEDREPLACE) <$< | pod2text >$@ |
63 | sed $(SEDREPLACE) <$< | pod2text >$@ |
68 | |
64 | |
69 | ../README.configure: rxvt.7.tbl |
65 | ../README.configure: rxvt.7.tbl |
70 | $(SED) $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ |
66 | sed $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ |
71 | |
67 | |
72 | ../README.FAQ: rxvt.7.tbl |
68 | ../README.FAQ: rxvt.7.tbl |
73 | $(SED) $(SEDREPLACE) <$< | podselect -section "FREQUENTLY ASKED QUESTIONS" | pod2text >$@ |
69 | sed $(SEDREPLACE) <$< | podselect -section "RXVT-UNICODE\/URXVT FREQUENTLY ASKED QUESTIONS" | pod2text >$@ |
74 | |
70 | |
75 | tags allbin: |
71 | tags allbin: |
76 | |
72 | |
77 | 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 \ |
78 | 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 \ |
79 | 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 \ |
80 | ../README.configure ../README.FAQ |
76 | ../README.configure ../README.FAQ |
81 | infocmp -C rxvt-unicode >etc/rxvt-unicode.termcap |
77 | infocmp -C rxvt-unicode >$(srcdir)/etc/rxvt-unicode.termcap |
82 | |
78 | |
83 | clean: |
79 | clean: |
84 | $(RMF) *~ |
80 | rm -f *~ |
|
|
81 | rm -f rxvt.1.man rxvt.7.man rxvtc.1.man rxvtd.1.man rxvtperl.3.man |
85 | |
82 | |
|
|
83 | distclean: clean |
|
|
84 | rm -f Makefile |
|
|
85 | |
86 | 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 |
87 | $(RMF) tags ../README.configure ../README.FAQ |
90 | rm -f ../README.configure ../README.FAQ |
88 | $(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 |
89 | $(RMF) rxvt.1.man rxvt.7.man rxvtc.1.man rxvtd.1.man |
|
|
90 | $(RMF) rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt |
|
|
91 | $(RMF) rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html |
|
|
92 | |
92 | |
93 | cleandir: realclean |
93 | cleandir: realclean |
94 | |
94 | |
95 | distclean: |
|
|
96 | |
|
|
97 | install: |
95 | install: |
98 | $(INSTALL) -d $(DESTDIR)$(man1dir) |
96 | $(INSTALL) -d $(DESTDIR)$(man1dir) |
99 | $(SED) $(SEDREPLACE) < rxvt.1.man.in >rxvt.1.man |
|
|
100 | $(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext) |
97 | $(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext) |
101 | $(SED) $(SEDREPLACE) < rxvtc.1.man.in >rxvtc.1.man |
|
|
102 | $(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) |
98 | $(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) |
103 | $(SED) $(SEDREPLACE) < rxvtd.1.man.in >rxvtd.1.man |
|
|
104 | $(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) |
99 | $(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) |
105 | $(INSTALL) -d $(DESTDIR)$(man7dir) |
100 | $(INSTALL) -d $(DESTDIR)$(man7dir) |
106 | $(SED) $(SEDREPLACE) < rxvt.7.man.in >rxvt.7.man |
|
|
107 | $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) |
101 | $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) |
108 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
102 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
109 | @IF_PERL@ $(SED) $(SEDREPLACE) < rxvtperl.3.man.in >rxvtperl.3.man |
|
|
110 | @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) |
111 | 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 |
112 | |
|
|
113 | uninstall: |
|
|
114 | -(cd $(mandir); $(RMF) $(RXVTNAME).$(manext) ) |
|
|
115 | |
105 | |
116 | distdepend: alldoc |
106 | distdepend: alldoc |
117 | |
107 | |
118 | # ------------------------------------------------------------------------ |
108 | # ------------------------------------------------------------------------ |
119 | # DO NOT DELETE: ugly dependency list follows |
109 | # DO NOT DELETE: ugly dependency list follows |