mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Make the build system print everything it does.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11842 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ceed673d15
commit
b8c1540227
@ -26,8 +26,8 @@ help:
|
||||
|
||||
.PHONY: html-chunked
|
||||
html-chunked: xsltproc.sh xmllint.sh
|
||||
@test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
|
||||
@for dir in $(SUBDIRS); do\
|
||||
test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
|
||||
for dir in $(SUBDIRS); do\
|
||||
test -f $$dir/Makefile &&\
|
||||
(test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\
|
||||
if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\
|
||||
@ -35,8 +35,8 @@ html-chunked: xsltproc.sh xmllint.sh
|
||||
|
||||
.PHONY: html-single
|
||||
html-single: xsltproc.sh xmllint.sh
|
||||
@test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE)
|
||||
@for dir in $(SUBDIRS); do\
|
||||
test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE)
|
||||
for dir in $(SUBDIRS); do\
|
||||
test -f $$dir/Makefile &&\
|
||||
(test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\
|
||||
if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.html -C $$dir html-single; then :; else exit 1; fi;\
|
||||
@ -44,21 +44,21 @@ html-single: xsltproc.sh xmllint.sh
|
||||
|
||||
.PHONY: clean-html-chunked
|
||||
clean-html-chunked:
|
||||
@-rm -rf $(HTML_CHUNKED)
|
||||
-rm -rf $(HTML_CHUNKED)
|
||||
|
||||
.PHONY: clean-html-single
|
||||
clean-html-single:
|
||||
@-rm -rf $(HTML_SINGLE)
|
||||
-rm -rf $(HTML_SINGLE)
|
||||
|
||||
.PHONY: distclean
|
||||
distclean: clean-html-chunked clean-html-single
|
||||
@for dir in $(SUBDIRS); do\
|
||||
for dir in $(SUBDIRS); do\
|
||||
test -f $$dir/Makefile &&\
|
||||
if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\
|
||||
done
|
||||
@-rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
|
||||
-rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh
|
||||
|
||||
xsltproc.sh xmllint.sh:
|
||||
@sh configure
|
||||
sh configure
|
||||
|
||||
clean: clean-html-chunked clean-html-single
|
||||
|
@ -37,48 +37,48 @@ html-chunked: $(HTMLDIR)/index.html
|
||||
html-single: $(HTMLFILE)
|
||||
|
||||
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS)
|
||||
@if test "$(HTMLDIR)" = "" ; then \
|
||||
if test "$(HTMLDIR)" = "" ; then \
|
||||
echo "Error: HTMLDIR not set!!!"; \
|
||||
echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
|
||||
echo "Don't do this!"; \
|
||||
false; \
|
||||
fi
|
||||
@if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
for file in ../en/*.xml ; do \
|
||||
if ! test -r `basename $$file` ; then \
|
||||
ln -s $$file `basename $$file` ; \
|
||||
fi ; \
|
||||
done ; \
|
||||
fi
|
||||
@-rm -f $(HTMLDIR)/*
|
||||
@../xmllint.sh $<
|
||||
@cp -f $(HTML_STYLESHEET) $(HTMLDIR)/
|
||||
@../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
|
||||
-rm -f $(HTMLDIR)/*
|
||||
../xmllint.sh $<
|
||||
cp -f $(HTML_STYLESHEET) $(HTMLDIR)/
|
||||
../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
|
||||
|
||||
$(HTMLFILE): main.xml $(XSL_DEPS)
|
||||
@if test "$(HTMLFILE)" = "" ; then \
|
||||
if test "$(HTMLFILE)" = "" ; then \
|
||||
echo "Error: HTMLFILE not set!!!"; \
|
||||
echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
|
||||
echo "Don't do this!"; \
|
||||
false; \
|
||||
fi
|
||||
@if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
for file in ../en/*.xml ; do \
|
||||
if ! test -r `basename $$file` ; then \
|
||||
ln -s $$file `basename $$file` ; \
|
||||
fi ; \
|
||||
done ; \
|
||||
fi
|
||||
@-rm -f $(HTMLFILE)
|
||||
@../xmllint.sh $<
|
||||
@cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
|
||||
@../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
|
||||
-rm -f $(HTMLFILE)
|
||||
../xmllint.sh $<
|
||||
cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
|
||||
../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
|
||||
|
||||
../html-chunk.xsl ../html-single.xsl main.xml:
|
||||
cd .. && sh configure
|
||||
|
||||
distclean:
|
||||
@rm -f main.xml
|
||||
@if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
rm -f main.xml
|
||||
if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
rm -f `find *.xml -type l`; \
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user