1 | DATE=@DATE@ |
1 | DATE = @DATE@ |
2 | VERSION=@VERSION@ |
2 | VERSION = @VERSION@ |
3 | RXVTNAME=@RXVTNAME@ |
3 | RXVTNAME = @RXVTNAME@ |
4 | SHELL = /bin/sh |
4 | SHELL = /bin/sh |
5 | prefix = @prefix@ |
5 | prefix = @prefix@ |
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 |
|
|
10 | man1ext = 1 |
|
|
11 | man3dir = @mandir@/man3 |
|
|
12 | man3ext = 3 |
|
|
13 | PODOPTS = quotes => q<"> , center => q<RXVT-UNICODE>, release => q<$(VERSION)> |
9 | CXX = @CXX@ |
14 | CXX = @CXX@ |
10 | PERL = @PERL@ |
15 | PERL = @PERL@ |
11 | INSTALL = @INSTALL@ |
16 | INSTALL = @INSTALL@ |
12 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
17 | INSTALL_PROGRAM = @INSTALL@ -m 755 |
13 | INSTALL_DATA = @INSTALL@ -m 644 |
18 | INSTALL_DATA = @INSTALL@ -m 644 |
… | |
… | |
22 | LINK = @LINKER@ $(LDFLAGS) |
27 | LINK = @LINKER@ $(LDFLAGS) |
23 | EXEEXT = @EXEEXT@ |
28 | EXEEXT = @EXEEXT@ |
24 | PERLFLAGS = @PERLFLAGS@ |
29 | PERLFLAGS = @PERLFLAGS@ |
25 | PERLLIB = @PERLLIB@ |
30 | PERLLIB = @PERLLIB@ |
26 | |
31 | |
27 | srcdir = @srcdir@ |
32 | srcdir = @srcdir@ |
28 | VPATH = @srcdir@ |
33 | VPATH = @srcdir@ |
29 | |
34 | |
30 | first_rule: all |
35 | first_rule: all |
31 | dummy: |
36 | dummy: |
32 | |
37 | |
33 | COMMON = \ |
38 | COMMON = \ |
… | |
… | |
80 | allbin: rxvt rxvtd rxvtc |
85 | allbin: rxvt rxvtd rxvtc |
81 | |
86 | |
82 | alldoc: |
87 | alldoc: |
83 | |
88 | |
84 | clean: |
89 | clean: |
85 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C |
90 | rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp |
86 | rm -f *.o |
91 | rm -f *.o |
87 | |
92 | |
88 | distclean: clean |
93 | distclean: clean |
89 | rm -f Makefile |
94 | rm -f Makefile |
90 | |
95 | |
… | |
… | |
95 | |
100 | |
96 | install-perl: |
101 | install-perl: |
97 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) |
102 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir) |
98 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
103 | @IF_PERL@ $(INSTALL) -d $(DESTDIR)$(libdir)/urxvt |
99 | @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) |
100 | @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 |
101 | @IF_PERL@ for ext in $(srcdir)/perl/*; do test -f "$$ext" && $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; done |
108 | @IF_PERL@ for ext in $(srcdir)/perl/*; do \ |
|
|
109 | @IF_PERL@ test -f "$$ext" || continue; \ |
|
|
110 | @IF_PERL@ base=`basename "$$ext"`; \ |
|
|
111 | @IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ |
|
|
112 | @IF_PERL@ < "$$ext" \ |
|
|
113 | @IF_PERL@ $(PERL) -MPod::Man -e '(new Pod::Man name => "'urxvt-$$base'", $(PODOPTS))->parse_from_file' \ |
|
|
114 | @IF_PERL@ > mantmp; \ |
|
|
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; \ |
|
|
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) |
102 | |
126 | |
103 | install-bin: allbin |
127 | install-bin: allbin |
104 | $(INSTALL) -d $(DESTDIR)$(bindir) |
128 | $(INSTALL) -d $(DESTDIR)$(bindir) |
105 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
129 | $(INSTALL_PROGRAM) rxvt $(RXVT_BINNAME) |
106 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
130 | $(INSTALL_PROGRAM) rxvtc $(RXVTC_BINNAME) |
… | |
… | |
110 | |
134 | |
111 | perlxsi.c: Makefile |
135 | perlxsi.c: Makefile |
112 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
136 | $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt |
113 | |
137 | |
114 | 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 |
115 | 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 >$@ |
116 | |
140 | |
117 | rxvtperl.o: rxvtperl.C perlxsi.c |
141 | rxvtperl.o: rxvtperl.C perlxsi.c |
118 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
142 | $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< |
119 | |
143 | |
120 | depend: |
144 | depend: |
… | |
… | |
216 | 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 |
217 | 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 |
218 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
242 | rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h |
219 | 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 |
220 | rxvttoolkit.o: optinc.h |
244 | rxvttoolkit.o: optinc.h |
221 | 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 |
222 | rxvtutil.o: emman.c |
246 | rxvtutil.o: ../libptytty/src/estl.h |
223 | 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 |
224 | 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 |
225 | 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 |
226 | 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 |
227 | screen.o: hookinc.h rsinc.h optinc.h |
251 | screen.o: hookinc.h rsinc.h optinc.h |