… | |
… | |
103 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
103 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
104 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl |
104 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl |
105 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
105 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
106 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
106 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
107 | @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
107 | @IF_PERL@ $(INSTALL_DATA) $(srcdir)/urxvt.pm $(DESTDIR)$(libdir)/urxvt/urxvt.pm |
108 | @IF_PERL@ cd $(srcdir)/perl; \ |
|
|
109 | @IF_PERL@ for ext in *; do \ |
108 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
110 | @IF_PERL@ test -f "$$ext" || continue; \ |
109 | @IF_PERL@ test -f "$$ext" || continue; \ |
|
|
110 | @IF_PERL@ base="$${ext##*/}"; \ |
111 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
111 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
112 | @IF_PERL@ < "$$ext" \ |
112 | @IF_PERL@ < "$$ext" \ |
113 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$ext'", $(PODOPTS))->parse_from_file' \ |
113 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
114 | @IF_PERL@ > ../mantmp; \ |
114 | @IF_PERL@ > mantmp; \ |
115 | @IF_PERL@ test -s ../mantmp && $(INSTALL_DATA) ../mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$ext.$(man1ext); \ |
115 | @IF_PERL@ test -s mantmp && $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-$$base.$(man1ext); \ |
116 | @IF_PERL@ < "$$ext" $(PERL) -ne '<>, (print <> . "\n"), exit if /^=head1/' >&3; \ |
116 | @IF_PERL@ < "$$ext" $(PERL) -ne '<>, (print <> . "\n"), exit if /^=head1/' >&3; \ |
117 | @IF_PERL@ done 3>../manlst |
117 | @IF_PERL@ done 3>manlst |
118 | @IF_PERL@ cat $(srcdir)/../doc/extensions.pod.top manlst $(srcdir)/../doc/extensions.pod.bot | \ |
118 | @IF_PERL@ cat $(srcdir)/../doc/extensions.pod.top manlst $(srcdir)/../doc/extensions.pod.bot | \ |
119 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)-extensions", $(PODOPTS))->parse_from_file' \ |
119 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)-extensions", $(PODOPTS))->parse_from_file' \ |
120 | @IF_PERL@ > mantmp |
120 | @IF_PERL@ > mantmp |
121 | @IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-extensions.$(man1ext) |
121 | @IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-extensions.$(man1ext) |
122 | @IF_PERL@ < $(srcdir)/urxvt.pm \ |
122 | @IF_PERL@ < $(srcdir)/urxvt.pm \ |
123 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)perl", $(PODOPTS))->parse_from_file' \ |
123 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)perl", section => 3, $(PODOPTS))->parse_from_file' \ |
124 | @IF_PERL@ > mantmp |
124 | @IF_PERL@ > mantmp |
125 | @IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
125 | @IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
126 | |
126 | |
127 | install-bin: allbin |
127 | install-bin: allbin |
128 | $(INSTALL) -d $(DESTDIR)$(bindir) |
128 | $(INSTALL) -d $(DESTDIR)$(bindir) |
… | |
… | |
134 | |
134 | |
135 | perlxsi.c: Makefile |
135 | perlxsi.c: Makefile |
136 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
136 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
137 | |
137 | |
138 | rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
138 | rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom |
139 | PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap.iom -typemap typemap -prototypes $(srcdir)/rxvtperl.xs >$@ |
139 | PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ |
140 | |
140 | |
141 | rxvtperl.o: rxvtperl.C perlxsi.c |
141 | rxvtperl.o: rxvtperl.C perlxsi.c |
142 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
142 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
143 | |
143 | |
144 | depend: |
144 | depend: |