mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
configure: detect rst2man binary name
This commit is contained in:
parent
538baaef6e
commit
e0aef8cf12
4
Makefile
4
Makefile
@ -326,7 +326,7 @@ endif
|
|||||||
all: $(ALL_PRG-yes) locales
|
all: $(ALL_PRG-yes) locales
|
||||||
|
|
||||||
%.1: %.rst
|
%.1: %.rst
|
||||||
rst2man $< $@
|
$(RST2MAN) $< $@
|
||||||
|
|
||||||
%.o: %.S
|
%.o: %.S
|
||||||
$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
|
$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
|
||||||
@ -414,7 +414,7 @@ osdep/mpv-rc.o: osdep/mpv.exe.manifest
|
|||||||
###### installation / clean / generic rules #######
|
###### installation / clean / generic rules #######
|
||||||
|
|
||||||
check_rst2man:
|
check_rst2man:
|
||||||
@which rst2man > /dev/null 2>&1 || (printf "\n\trst2man not found. You need the docutils (>= 0.7) to generate the manpages. Alternatively you can use 'install-no-man' rule.\n\n" && exit 1)
|
@which $(RST2MAN) > /dev/null 2>&1 || (printf "\n\trst2man not found. You need the docutils (>= 0.7) to generate the manpages. Alternatively you can use 'install-no-man' rule.\n\n" && exit 1)
|
||||||
|
|
||||||
install: $(INSTALL_TARGETS-yes)
|
install: $(INSTALL_TARGETS-yes)
|
||||||
|
|
||||||
|
6
configure
vendored
6
configure
vendored
@ -956,6 +956,11 @@ if cygwin ; then
|
|||||||
extra_cflags="$extra_cflags -mwin32"
|
extra_cflags="$extra_cflags -mwin32"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_rst2man=rst2man
|
||||||
|
if [ -f "$(which rst2man.py)" ] ; then
|
||||||
|
_rst2man=rst2man.py
|
||||||
|
fi
|
||||||
|
|
||||||
TMPC="$mplayer_tmpdir/tmp.c"
|
TMPC="$mplayer_tmpdir/tmp.c"
|
||||||
TMPCPP="$mplayer_tmpdir/tmp.cpp"
|
TMPCPP="$mplayer_tmpdir/tmp.cpp"
|
||||||
TMPEXE="$mplayer_tmpdir/tmp$_exesuf"
|
TMPEXE="$mplayer_tmpdir/tmp$_exesuf"
|
||||||
@ -3332,6 +3337,7 @@ EXTRALIBS_MPLAYER = $libs_mplayer
|
|||||||
|
|
||||||
GETCH = $_getch
|
GETCH = $_getch
|
||||||
TIMER = $_timer
|
TIMER = $_timer
|
||||||
|
RST2MAN = $_rst2man
|
||||||
|
|
||||||
EXESUF = $_exesuf
|
EXESUF = $_exesuf
|
||||||
EXESUFS_ALL = .exe
|
EXESUFS_ALL = .exe
|
||||||
|
Loading…
Reference in New Issue
Block a user