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