1 |
# doc/Makefile.in -*- Makefile -*- |
2 |
@MCOMMON@ |
3 |
|
4 |
srcdir = @srcdir@ |
5 |
VPATH = @srcdir@ |
6 |
.PATH: @srcdir@ |
7 |
|
8 |
basedir = .. |
9 |
thisdir = doc |
10 |
|
11 |
first_rule: all |
12 |
dummy: |
13 |
|
14 |
#------------------------------------------------------------------------- |
15 |
|
16 |
all: |
17 |
|
18 |
SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;' \ |
19 |
-e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;' \ |
20 |
-e 's%@@RXVT_DATE@@%$(DATE)%g;' \ |
21 |
-e 's%@@RXVT_LIBDIR@@%$(libdir)%g;' |
22 |
|
23 |
rxvtperl.3.pod: ../src/urxvt.pm |
24 |
cp $< $@ |
25 |
|
26 |
%.tbl: %.pod |
27 |
./podtbl <$< >$@ |
28 |
|
29 |
%.1.man.in: %.1.tbl |
30 |
pod2man -n rxvt -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@ |
31 |
|
32 |
%.3.man.in: %.3.tbl |
33 |
pod2man -n rxvt -r"$(VERSION)" -q\" -s3 -c "RXVT-UNICODE" <$< >$@ |
34 |
|
35 |
%.7.man.in: %.7.tbl |
36 |
pod2man -n rxvt -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@ |
37 |
|
38 |
%.html: %.tbl |
39 |
$(SED) $(SEDREPLACE) <$< | pod2html >$@ |
40 |
|
41 |
%.txt: %.tbl |
42 |
$(SED) $(SEDREPLACE) <$< | pod2text >$@ |
43 |
|
44 |
../README.configure: rxvt.7.tbl |
45 |
$(SED) $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ |
46 |
|
47 |
../README.FAQ: rxvt.7.tbl |
48 |
$(SED) $(SEDREPLACE) <$< | podselect -section "FREQUENTLY ASKED QUESTIONS" | pod2text >$@ |
49 |
|
50 |
tags allbin: |
51 |
|
52 |
alldoc: rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in rxvtperl.3.man.in \ |
53 |
rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt rxvtperl.3.txt \ |
54 |
rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html rxvtperl.3.html \ |
55 |
../README.configure ../README.FAQ |
56 |
infocmp -C rxvt-unicode >etc/rxvt-unicode.termcap |
57 |
|
58 |
clean: |
59 |
$(RMF) *~ |
60 |
|
61 |
realclean: clean |
62 |
$(RMF) tags ../README.configure ../README.FAQ |
63 |
$(RMF) rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in |
64 |
$(RMF) rxvt.1.man rxvt.7.man rxvtc.1.man rxvtd.1.man |
65 |
$(RMF) rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt |
66 |
$(RMF) rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html |
67 |
|
68 |
cleandir: realclean |
69 |
|
70 |
distclean: |
71 |
|
72 |
install: |
73 |
$(INSTALL) -d $(DESTDIR)$(man1dir) |
74 |
$(SED) $(SEDREPLACE) < rxvt.1.man.in >rxvt.1.man |
75 |
$(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext) |
76 |
$(SED) $(SEDREPLACE) < rxvtc.1.man.in >rxvtc.1.man |
77 |
$(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) |
78 |
$(SED) $(SEDREPLACE) < rxvtd.1.man.in >rxvtd.1.man |
79 |
$(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) |
80 |
$(INSTALL) -d $(DESTDIR)$(man7dir) |
81 |
$(SED) $(SEDREPLACE) < rxvt.7.man.in >rxvt.7.man |
82 |
$(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) |
83 |
@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
84 |
@IF_PERL@ $(SED) $(SEDREPLACE) < rxvtperl.3.man.in >rxvtperl.3.man |
85 |
@IF_PERL@ $(INSTALL_DATA) rxvtperl.3.man $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
86 |
if test -x "@TIC@"; then if test -n "@TIC@"; then @TIC@ etc/rxvt-unicode.terminfo; fi; fi |
87 |
|
88 |
uninstall: |
89 |
-(cd $(mandir); $(RMF) $(RXVTNAME).$(manext) ) |
90 |
|
91 |
distdepend: alldoc |
92 |
|
93 |
# ------------------------------------------------------------------------ |
94 |
# DO NOT DELETE: ugly dependency list follows |