1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 23:00:41 +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:
diego 2004-01-24 22:31:11 +00:00
parent ceed673d15
commit b8c1540227
2 changed files with 23 additions and 23 deletions

View File

@ -26,8 +26,8 @@ help:
.PHONY: html-chunked .PHONY: html-chunked
html-chunked: xsltproc.sh xmllint.sh html-chunked: xsltproc.sh xmllint.sh
@test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED) test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED)
@for dir in $(SUBDIRS); do\ for dir in $(SUBDIRS); do\
test -f $$dir/Makefile &&\ test -f $$dir/Makefile &&\
(test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\ (test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\
if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\ 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 .PHONY: html-single
html-single: xsltproc.sh xmllint.sh html-single: xsltproc.sh xmllint.sh
@test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE) test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE)
@for dir in $(SUBDIRS); do\ for dir in $(SUBDIRS); do\
test -f $$dir/Makefile &&\ test -f $$dir/Makefile &&\
(test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\ (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;\ 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 .PHONY: clean-html-chunked
clean-html-chunked: clean-html-chunked:
@-rm -rf $(HTML_CHUNKED) -rm -rf $(HTML_CHUNKED)
.PHONY: clean-html-single .PHONY: clean-html-single
clean-html-single: clean-html-single:
@-rm -rf $(HTML_SINGLE) -rm -rf $(HTML_SINGLE)
.PHONY: distclean .PHONY: distclean
distclean: clean-html-chunked clean-html-single distclean: clean-html-chunked clean-html-single
@for dir in $(SUBDIRS); do\ for dir in $(SUBDIRS); do\
test -f $$dir/Makefile &&\ test -f $$dir/Makefile &&\
if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\ if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\
done 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: xsltproc.sh xmllint.sh:
@sh configure sh configure
clean: clean-html-chunked clean-html-single clean: clean-html-chunked clean-html-single

View File

@ -37,48 +37,48 @@ html-chunked: $(HTMLDIR)/index.html
html-single: $(HTMLFILE) html-single: $(HTMLFILE)
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS)
@if test "$(HTMLDIR)" = "" ; then \ if test "$(HTMLDIR)" = "" ; then \
echo "Error: HTMLDIR not set!!!"; \ echo "Error: HTMLDIR not set!!!"; \
echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
echo "Don't do this!"; \ echo "Don't do this!"; \
false; \ false; \
fi fi
@if test "$(USE_SYMLINKS)" = "yes" ; then \ if test "$(USE_SYMLINKS)" = "yes" ; then \
for file in ../en/*.xml ; do \ for file in ../en/*.xml ; do \
if ! test -r `basename $$file` ; then \ if ! test -r `basename $$file` ; then \
ln -s $$file `basename $$file` ; \ ln -s $$file `basename $$file` ; \
fi ; \ fi ; \
done ; \ done ; \
fi fi
@-rm -f $(HTMLDIR)/* -rm -f $(HTMLDIR)/*
@../xmllint.sh $< ../xmllint.sh $<
@cp -f $(HTML_STYLESHEET) $(HTMLDIR)/ cp -f $(HTML_STYLESHEET) $(HTMLDIR)/
@../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
$(HTMLFILE): main.xml $(XSL_DEPS) $(HTMLFILE): main.xml $(XSL_DEPS)
@if test "$(HTMLFILE)" = "" ; then \ if test "$(HTMLFILE)" = "" ; then \
echo "Error: HTMLFILE not set!!!"; \ echo "Error: HTMLFILE not set!!!"; \
echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \ echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
echo "Don't do this!"; \ echo "Don't do this!"; \
false; \ false; \
fi fi
@if test "$(USE_SYMLINKS)" = "yes" ; then \ if test "$(USE_SYMLINKS)" = "yes" ; then \
for file in ../en/*.xml ; do \ for file in ../en/*.xml ; do \
if ! test -r `basename $$file` ; then \ if ! test -r `basename $$file` ; then \
ln -s $$file `basename $$file` ; \ ln -s $$file `basename $$file` ; \
fi ; \ fi ; \
done ; \ done ; \
fi fi
@-rm -f $(HTMLFILE) -rm -f $(HTMLFILE)
@../xmllint.sh $< ../xmllint.sh $<
@cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)` cp -f $(HTML_STYLESHEET) `dirname $(HTMLFILE)`
@../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $< ../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<
../html-chunk.xsl ../html-single.xsl main.xml: ../html-chunk.xsl ../html-single.xsl main.xml:
cd .. && sh configure cd .. && sh configure
distclean: distclean:
@rm -f main.xml rm -f main.xml
@if test "$(USE_SYMLINKS)" = "yes" ; then \ if test "$(USE_SYMLINKS)" = "yes" ; then \
rm -f `find *.xml -type l`; \ rm -f `find *.xml -type l`; \
fi fi