… | |
… | |
6 | exec_prefix = @exec_prefix@ |
6 | exec_prefix = @exec_prefix@ |
7 | bindir = @bindir@ |
7 | bindir = @bindir@ |
8 | libdir = @libdir@ |
8 | libdir = @libdir@ |
9 | man1dir = @mandir@/man1 |
9 | man1dir = @mandir@/man1 |
10 | man1ext = 1 |
10 | man1ext = 1 |
|
|
11 | man3dir = @mandir@/man3 |
|
|
12 | man3ext = 3 |
|
|
13 | PODOPTS = quotes => q<"> , center => q<RXVT-UNICODE>, release => q<$(VERSION)> |
11 | CXX = @CXX@ |
14 | CXX = @CXX@ |
12 | PERL = @PERL@ |
15 | PERL = @PERL@ |
13 | INSTALL = @INSTALL@ |
16 | INSTALL = @INSTALL@ |
14 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
17 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
15 | INSTALL_DATA = @INSTALL@ -m 644 |
18 | INSTALL_DATA = @INSTALL@ -m 644 |
… | |
… | |
24 | LINK = @LINKER@ $(LDFLAGS) |
27 | LINK = @LINKER@ $(LDFLAGS) |
25 | EXEEXT = @EXEEXT@ |
28 | EXEEXT = @EXEEXT@ |
26 | PERLFLAGS = @PERLFLAGS@ |
29 | PERLFLAGS = @PERLFLAGS@ |
27 | PERLLIB = @PERLLIB@ |
30 | PERLLIB = @PERLLIB@ |
28 | |
31 | |
29 | srcdir = @srcdir@ |
32 | srcdir = @srcdir@ |
30 | VPATH = @srcdir@ |
33 | VPATH = @srcdir@ |
31 | |
34 | |
32 | first_rule: all |
35 | first_rule: all |
33 | dummy: |
36 | dummy: |
34 | |
37 | |
35 | COMMON = \ |
38 | COMMON = \ |
… | |
… | |
82 | allbin: rxvt rxvtd rxvtc |
85 | allbin: rxvt rxvtd rxvtc |
83 | |
86 | |
84 | alldoc: |
87 | alldoc: |
85 | |
88 | |
86 | clean: |
89 | clean: |
87 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C mantmp |
90 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp |
88 | rm -f *.o |
91 | rm -f *.o |
89 | |
92 | |
90 | distclean: clean |
93 | distclean: clean |
91 | rm -f Makefile |
94 | rm -f Makefile |
92 | |
95 | |
… | |
… | |
97 | |
100 | |
98 | install-perl: |
101 | install-perl: |
99 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) |
102 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) |
100 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
103 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
101 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl |
104 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt/perl |
|
|
105 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man1dir) |
|
|
106 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(man3dir) |
102 | @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 |
103 | @IF_PERL@ cd $(srcdir)/perl; for ext in *; do \ |
108 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
104 | @IF_PERL@ test -f "$$ext" || continue; \ |
109 | @IF_PERL@ test -f "$$ext" || continue; \ |
|
|
110 | @IF_PERL@ base=`basename "$$ext"`; \ |
105 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
111 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
106 | @IF_PERL@ < "$$ext" \ |
112 | @IF_PERL@ < "$$ext" \ |
107 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "abc", quotes => q<"> , center => q<RXVT-UNICODE>)->parse_from_file' \ |
113 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
108 | @IF_PERL@ > ../mantmp; \ |
114 | @IF_PERL@ > mantmp; \ |
109 | @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; \ |
110 | @IF_PERL@ done |
117 | @IF_PERL@ done 3>manlst |
|
|
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' \ |
|
|
120 | @IF_PERL@ > mantmp |
|
|
121 | @IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man1dir)/$(RXVTNAME)-extensions.$(man1ext) |
|
|
122 | @IF_PERL@ < $(srcdir)/urxvt.pm \ |
|
|
123 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "$(RXVTNAME)perl", section => 3, $(PODOPTS))->parse_from_file' \ |
|
|
124 | @IF_PERL@ > mantmp |
|
|
125 | @IF_PERL@ $(INSTALL_DATA) mantmp $(DESTDIR)$(man3dir)/$(RXVTNAME)perl.$(man3ext) |
111 | |
126 | |
112 | install-bin: allbin |
127 | install-bin: allbin |
113 | $(INSTALL) -d $(DESTDIR)$(bindir) |
128 | $(INSTALL) -d $(DESTDIR)$(bindir) |
114 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
129 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
115 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
130 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
… | |
… | |
119 | |
134 | |
120 | perlxsi.c: Makefile |
135 | perlxsi.c: Makefile |
121 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
136 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
122 | |
137 | |
123 | 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 |
124 | 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 >$@ |
125 | |
140 | |
126 | rxvtperl.o: rxvtperl.C perlxsi.c |
141 | rxvtperl.o: rxvtperl.C perlxsi.c |
127 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
142 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
128 | |
143 | |
129 | depend: |
144 | depend: |
… | |
… | |
225 | rxvttoolkit.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
240 | rxvttoolkit.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h |
226 | rxvttoolkit.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
241 | rxvttoolkit.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h |
227 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
242 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
228 | rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
243 | rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h |
229 | rxvttoolkit.o: optinc.h |
244 | rxvttoolkit.o: optinc.h |
230 | rxvtutil.o: rxvtutil.h ../libptytty/src/ecb.h ../libptytty/src/estl.h emman.h |
245 | rxvtutil.o: emman.c emman.h ../libptytty/src/ecb.h rxvtutil.h |
231 | rxvtutil.o: emman.c |
246 | rxvtutil.o: ../libptytty/src/estl.h |
232 | screen.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
247 | screen.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h |
233 | screen.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h |
248 | screen.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h |
234 | screen.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
249 | screen.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h |
235 | screen.o: rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h rxvtperl.h |
250 | screen.o: rxvtimg.h scrollbar.h ../libptytty/src/libptytty.h rxvtperl.h |
236 | screen.o: hookinc.h rsinc.h optinc.h |
251 | screen.o: hookinc.h rsinc.h optinc.h |