--- rxvt-unicode/src/Makefile.in 2012/06/28 15:19:15 1.169 +++ rxvt-unicode/src/Makefile.in 2021/05/10 00:46:22 1.185 @@ -1,11 +1,16 @@ -DATE=@DATE@ -VERSION=@VERSION@ -RXVTNAME=@RXVTNAME@ +DATE = @DATE@ +VERSION = @VERSION@ +RXVTNAME = @RXVTNAME@ SHELL = /bin/sh prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ 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@ @@ -24,14 +29,14 @@ PERLFLAGS = @PERLFLAGS@ PERLLIB = @PERLLIB@ -srcdir = @srcdir@ -VPATH = @srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ first_rule: all dummy: COMMON = \ - background.o command.o rxvtfont.o init.o main.o misc.o \ + command.o rxvtfont.o init.o main.o misc.o \ screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \ scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \ rxvttoolkit.o rxvtutil.o keyboard.o rxvtimg.o \ @@ -67,6 +72,9 @@ rxvtc: rxvtc.o $(COMMON_DAEMON) fdpass_wrapper.o $(LINK) -o $@ rxvtc.o $(COMMON_DAEMON) fdpass_wrapper.o $(LIBS) +rclock: rclock.o + $(LINK) -o $@ rclock.o $(LIBS) $(XLIB) + #------------------------------------------------------------------------- #EXUBERANT_OPTS = -I NOTHROW -I THROW @@ -82,7 +90,7 @@ alldoc: clean: - rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C + rm -f rxvt rxvtc rxvtd perlxsi.c rxvtperl.C manlst mantmp rm -f *.o distclean: clean @@ -97,8 +105,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@ for ext in $(srcdir)/perl/*; do test -f "$$ext" && $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; done +@IF_PERL@ for ext in $(srcdir)/perl/*; do \ +@IF_PERL@ test -f "$$ext" || continue; \ +@IF_PERL@ base=`basename "$$ext"`; \ +@IF_PERL@ $(INSTALL_DATA) "$$ext" $(DESTDIR)$(libdir)/urxvt/perl/; \ +@IF_PERL@ < "$$ext" \ +@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)-$$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) @@ -112,7 +139,7 @@ $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom - PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap typemap.iom -typemap typemap -prototypes $(srcdir)/rxvtperl.xs >$@ + PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ rxvtperl.o: rxvtperl.C perlxsi.c $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< @@ -120,14 +147,13 @@ depend: makedepend -f Makefile.in -I. -I.. -I../libptytty/src -I../libev -Y *.C *.xs >/dev/null 2>&1 +# makedepend has trouble finding these +ev_cpp.o: ../libev/ev.c ../libev/ev_epoll.c ../libev/ev_kqueue.c ../libev/ev_linuxaio.c +ev_cpp.o: ../libev/ev_poll.c ../libev/ev_port.c ../libev/ev_select.c ../libev/ev_win32.c + + # DO NOT DELETE: nice dependency list follows -background.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h -background.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h -background.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h -background.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h -background.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h -background.o: optinc.h command.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h command.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h command.o: rxvttoolkit.h ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h @@ -218,8 +244,8 @@ rxvttoolkit.o: ../libev/ev.h callback.h rxvtimg.h scrollbar.h rxvttoolkit.o: ../libptytty/src/libptytty.h rxvtperl.h hookinc.h rsinc.h rxvttoolkit.o: optinc.h -rxvtutil.o: rxvtutil.h ../libptytty/src/ecb.h ../libptytty/src/estl.h emman.h -rxvtutil.o: emman.c +rxvtutil.o: emman.c emman.h ../libptytty/src/ecb.h rxvtutil.h +rxvtutil.o: ../libptytty/src/estl.h screen.o: ../config.h rxvt.h feature.h ../libptytty/src/ecb.h encoding.h screen.o: rxvtutil.h ../libptytty/src/estl.h emman.h rxvtfont.h rxvttoolkit.h screen.o: ev_cpp.h ../config.h ../libev/ev++.h ../libev/ev.h callback.h