--- rxvt-unicode/src/Makefile.in 2012/09/21 22:55:56 1.170 +++ rxvt-unicode/src/Makefile.in 2013/10/27 16:20:55 1.177 @@ -8,6 +8,9 @@ libdir = @libdir@ man1dir = @mandir@/man1 man1ext = 1 +man3dir = @mandir@/man3 +man3ext = 3 +PODOPTS = quotes => q<"> , center => q, release => q<$(VERSION)> CXX = @CXX@ PERL = @PERL@ INSTALL = @INSTALL@ @@ -26,8 +29,8 @@ PERLFLAGS = @PERLFLAGS@ PERLLIB = @PERLLIB@ -srcdir = @srcdir@ -VPATH = @srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ first_rule: all dummy: @@ -84,7 +87,7 @@ alldoc: clean: - rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C mantmp + rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp rm -f *.o distclean: clean @@ -99,15 +102,27 @@ @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl +@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) +@IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm -@IF_PERL@ cd $(srcdir)/perl; for ext in *; do \ +@IF_PERL@ for ext in $(srcdir)/perl/*; do \ @IF_PERL@ test -f "$$ext" || continue; \ +@IF_PERL@ base="$${ext##*/}"; \ @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ @IF_PERL@ < "$$ext" \ -@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "abc", quotes => q<"> , center => q)->parse_from_file' \ +@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ @IF_PERL@ > ../mantmp; \ -@IF_PERL@ test -s ../mantmp && $(INSTALL_DATA) ../mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$ext.$(man1ext); \ -@IF_PERL@ done +@IF_PERL@ test -s ../mantmp && $(INSTALL_DATA) ../mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ +@IF_PERL@ < "$$ext" $(PERL) -ne '<>, (print <> . "\n"), exit if /^=head1/' >&3; \ +@IF_PERL@ done 3>manlst +@IF_PERL@ cat $(srcdir)/../doc/extensions.pod.top manlst $(srcdir)/../doc/extensions.pod.bot | \ +@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)-extensions", $(PODOPTS))->parse_from_file' \ +@IF_PERL@ > mantmp +@IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-extensions.$(man1ext) +@IF_PERL@ < $(srcdir)/urxvt.pm \ +@IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)perl", section => 3, $(PODOPTS))->parse_from_file' \ +@IF_PERL@ > mantmp +@IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) install-bin: allbin $(INSTALL) -d $(DESTDIR)$(bindir) @@ -160,7 +175,7 @@ encoding.o: table/jis0212_1990_0.h table/jis0213_1.h table/jis0213_2.h encoding.o: table/compose.h table/category.h ev_cpp.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h ../libev/ev.c -ev_cpp.o: ../libev/ev_vars.h ../libev/ev_epoll.c ../libev/ev_select.c +ev_cpp.o: ../libev/ev_vars.h ../libev/ev_epoll.c fdpass_wrapper.o: ../libptytty/src/fdpass.C ../config.h fdpass_wrapper.o: ../libptytty/src/libptytty.h init.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h