--- rxvt-unicode/doc/Makefile.in 2004/08/22 22:25:11 1.16 +++ rxvt-unicode/doc/Makefile.in 2006/01/18 08:33:34 1.28 @@ -1,6 +1,30 @@ # doc/Makefile.in -*- Makefile -*- -# $Id: Makefile.in,v 1.16 2004/08/22 22:25:11 root Exp $ -@MCOMMON@ + +DATE=@DATE@ +VERSION=@VERSION@ +RXVTNAME=@RXVTNAME@ +SHELL = /bin/sh +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +libdir = @libdir@ +includedir = @includedir@ +man1dir = @mandir@/man1 +man1ext = 1 +man3dir = @mandir@/man3 +man3ext = 3 +man7dir = @mandir@/man7 +man7ext = 7 +RM = @RM@ +RMF = @RM@ -f +CP = @CP@ +LN = @LN@ +SED = @SED@ +ECHO = @ECHO@ +PERL = @PERL@ +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL@ -m 755 +INSTALL_DATA = @INSTALL@ -m 644 srcdir = @srcdir@ VPATH = @srcdir@ @@ -12,61 +36,59 @@ first_rule: all dummy: -DIST_ETC = etc/rxvt.termcap etc/rxvt.terminfo etc/XTerm.ad -DIST_POD = rxvt.1.pod rxvt.7.pod -DIST_MENU = menu/menu menu/example.menu menu/rxvt.menu menu/rxvt.zh-menu\ - menu/terminal.menu menu/jedmenu.sl -DIST = Makefile.in README.menu README.xvt BUGS FAQ TODO\ - changes.txt xterm.seq LSM.in \ - rxvt.1.man rxvt.7.man rxvt.1.html rxvt.7.html rxvt.1.txt rxvt.7.txt - #------------------------------------------------------------------------- all: -SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;'\ - -e 's%@@RXVT_LSMDATE@@%$(LSMDATE)%g;'\ - -e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;'\ - -e 's%@@RXVT_DATE@@%$(DATE)%g;'\ - -e 's%@@RXVT_MAINTEMAIL@@%$(MAINTEMAIL)%g;'\ - -e 's%@@RXVT_MAINT@@%$(MAINT)%g;'\ - -e 's%@@RXVT_WEBPAGE@@%$(WEBPAGE)%g;'\ - -e 's%@@RXVT_WEBMAINTEMAIL@@%$(WEBMAINTEMAIL)%g;'\ - -e 's%@@RXVT_WEBMAINT@@%$(WEBMAINT)%g;' - -rxvt.1.man: rxvt.1.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | pod2man -n rxvt -qnone -s1 -c "RXVT-UNICODE" >$@ - -rxvt.7.man: rxvt.7.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | pod2man -n rxvt -qnone -s7 -c "RXVT-UNICODE" >$@ - -rxvt.1.html: rxvt.1.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | pod2html >$@ - -rxvt.7.html: rxvt.7.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | pod2html >$@ +SEDREPLACE = -e 's%@@RXVT_VERSION@@%$(VERSION)%g;' \ + -e 's%@@RXVT_NAME@@%$(RXVTNAME)%g;' \ + -e 's%@@RXVT_DATE@@%$(DATE)%g;' \ + -e 's%@@RXVT_LIBDIR@@%$(libdir)%g;' -rxvt.1.txt: rxvt.1.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | pod2text >$@ +rxvtperl.3.pod: ../src/urxvt.pm + $(CP) $< $@ -rxvt.7.txt: rxvt.7.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | pod2text >$@ +%.tbl: %.pod + ./podtbl <$< >$@ -../README.configure: rxvt.7.pod - $(SED) $(SEDREPLACE) < $< | ./podtbl | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ +%.1.man.in: %.1.tbl + pod2man -n rxvt -r"$(VERSION)" -q\" -s1 -c "RXVT-UNICODE" <$< >$@ -tags allbin: +%.3.man.in: %.3.tbl + pod2man -n rxvt -r"$(VERSION)" -q\" -s3 -c "RXVT-UNICODE" <$< >$@ + +%.7.man.in: %.7.tbl + pod2man -n rxvt -r"$(VERSION)" -q\" -s7 -c "RXVT-UNICODE" <$< >$@ + +%.html: %.tbl + $(SED) $(SEDREPLACE) <$< | pod2html >$@ + +%.txt: %.tbl + $(SED) $(SEDREPLACE) <$< | pod2text >$@ -alldoc: $(basedir)/$(VERNAME).lsm rxvt.1.man rxvt.7.man rxvt.1.html rxvt.7.html rxvt.1.txt rxvt.7.txt ../README.configure +../README.configure: rxvt.7.tbl + $(SED) $(SEDREPLACE) <$< | podselect -section "CONFIGURE OPTIONS" | pod2text >$@ -$(basedir)/$(VERNAME).lsm: LSM.in $(srcdir)/../autoconf/Make.common.in - $(SED) $(SEDREPLACE) < $(srcdir)/LSM.in > $@ +../README.FAQ: rxvt.7.tbl + $(SED) $(SEDREPLACE) <$< | podselect -section "FREQUENTLY ASKED QUESTIONS" | pod2text >$@ + +tags allbin: + +alldoc: rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in rxvtperl.3.man.in \ + rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt rxvtperl.3.txt \ + rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html rxvtperl.3.html \ + ../README.configure ../README.FAQ + infocmp -C rxvt-unicode >etc/rxvt-unicode.termcap clean: $(RMF) *~ realclean: clean - $(RMF) tags rxvt.1.man rxvt.7.man rxvt.1.html rxvt.7.htmlrxvt.1.txt rxvt.7.txt + $(RMF) tags ../README.configure ../README.FAQ + $(RMF) rxvt.1.man.in rxvt.7.man.in rxvtc.1.man.in rxvtd.1.man.in + $(RMF) rxvt.1.man rxvt.7.man rxvtc.1.man rxvtd.1.man + $(RMF) rxvt.1.txt rxvt.7.txt rxvtc.1.txt rxvtd.1.txt + $(RMF) rxvt.1.html rxvt.7.html rxvtc.1.html rxvtd.1.html cleandir: realclean @@ -74,11 +96,18 @@ install: $(INSTALL) -d $(DESTDIR)$(man1dir) - $(INSTALL) -d $(DESTDIR)$(man7dir) + $(SED) $(SEDREPLACE) < rxvt.1.man.in >rxvt.1.man $(INSTALL_DATA) rxvt.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME).$(man1ext) + $(SED) $(SEDREPLACE) < rxvtc.1.man.in >rxvtc.1.man + $(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) + $(SED) $(SEDREPLACE) < rxvtd.1.man.in >rxvtd.1.man + $(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) + $(INSTALL) -d $(DESTDIR)$(man7dir) + $(SED) $(SEDREPLACE) < rxvt.7.man.in >rxvt.7.man $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) - $(INSTALL_DATA) rxvtc.1 $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) - $(INSTALL_DATA) rxvtc.1 $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) +@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) +@IF_PERL@ $(SED) $(SEDREPLACE) < rxvtperl.3.man.in >rxvtperl.3.man +@IF_PERL@ $(INSTALL_DATA) rxvtperl.3.man $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) if test -x "@TIC@"; then if test -n "@TIC@"; then @TIC@ etc/rxvt-unicode.terminfo; fi; fi uninstall: