*** empty log message ***
[dana/urxvt.git] / doc / Makefile.in
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
22 %.tbl: %.pod
23         ./podtbl <$< >$@
24
25 %.1.man.in: %.1.tbl
26         pod2man -n rxvt -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@
27
28 %.7.man.in: %.7.tbl
29         pod2man -n rxvt -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@
30
31 %.html: %.tbl
32         $(SED) $(SEDREPLACE) <$< | pod2html >$@
33
34 %.txt: %.tbl
35         $(SED) $(SEDREPLACE) <$< | pod2text >$@
36
37 ../README.configure: rxvt.7.tbl
38         $(SED) $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@
39
40 ../README.FAQ: rxvt.7.tbl
41         $(SED) $(SEDREPLACE) <$< | podselect -section "FREQUENTLY ASKED QUESTIONS" | pod2text >$@
42
43 tags allbin:
44
45 alldoc: rxvt.1.man.in rxvt.7.man.in rxvt.1.html rxvt.7.html rxvt.1.txt rxvt.7.txt ../README.configure ../README.FAQ
46
47 clean:
48         $(RMF) *~
49
50 realclean: clean
51         $(RMF) tags rxvt.1.man.in rxvt.7.man.in rxvt.1.html rxvt.7.html rxvt.1.txt rxvt.7.txt  ../README.configure ../README.FAQ
52
53 cleandir: realclean
54
55 distclean:
56
57 install:
58         $(INSTALL) -d $(DESTDIR)$(man1dir)
59         $(INSTALL) -d $(DESTDIR)$(man7dir)
60         $(SED) $(SEDREPLACE) < rxvt.1.man.in >rxvt.1.man
61         $(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext)
62         $(SED) $(SEDREPLACE) < rxvt.7.man.in >rxvt.7.man
63         $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext)
64         $(INSTALL_DATA) rxvtc.1 $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext)
65         $(INSTALL_DATA) rxvtc.1 $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext)
66         if test -x "@TIC@"; then if test -n "@TIC@"; then @TIC@ etc/rxvt-unicode.terminfo; fi; fi
67
68 uninstall:
69         -(cd $(mandir); $(RMF) $(RXVTNAME).$(manext) )
70
71 distdepend: alldoc
72
73 # ------------------------------------------------------------------------
74 # DO NOT DELETE: ugly dependency list follows