mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00:00
Move symlinks to a separate target
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11894 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9668550b51
commit
113f516189
@ -35,38 +35,24 @@ all: html-chunked html-single
|
||||
html-chunked: $(HTMLDIR)/index.html
|
||||
html-single: $(HTMLFILE)
|
||||
|
||||
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS)
|
||||
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(if $(findstring yes,$(USE_SYMLINKS)),symlinks)
|
||||
ifndef HTMLDIR
|
||||
$(warning $(HTMLDIR))
|
||||
$(warning Error: HTMLDIR not set!!!)
|
||||
$(warning Typically this means, that you've run make from a subdir of DOCS/xml.)
|
||||
$(error Don't do this!)
|
||||
endif
|
||||
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) $<
|
||||
|
||||
$(HTMLFILE): main.xml $(XSL_DEPS)
|
||||
$(HTMLFILE): main.xml $(XSL_DEPS) $(if $(findstring yes,$(USE_SYMLINKS)),symlinks)
|
||||
ifndef HTMLFILE
|
||||
$(warning Error: HTMLFILE not set!!!)
|
||||
$(warning Typically this means, that you've run make from a subdir of DOCS/xml.)
|
||||
$(error Don't do this!)
|
||||
endif
|
||||
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)`
|
||||
@ -75,6 +61,14 @@ endif
|
||||
../html-chunk.xsl ../html-single.xsl main.xml:
|
||||
cd .. && sh configure
|
||||
|
||||
.PHONY: symlinks
|
||||
symlinks:
|
||||
for file in ../en/*.xml ; do \
|
||||
if ! test -r `basename $$file` ; then \
|
||||
ln -s $$file `basename $$file` ; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
distclean:
|
||||
rm -f main.xml
|
||||
if test "$(USE_SYMLINKS)" = "yes" ; then \
|
||||
|
Loading…
Reference in New Issue
Block a user