Put symlinks under revision control instead of generating them during make.

This simplifies the build system and should have no practical disadvantage.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31133 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-05-03 23:00:58 +00:00
parent eaff21c633
commit bcdf7c0b3d
14 changed files with 15 additions and 9 deletions

View File

@ -57,7 +57,6 @@ clean:
releaseclean:
-rm -f $(CONFIGURE_GENERATED)
-rm -f $(MAIN_XML_ALL)
-rm -f $$(find . -name *.xml -type l)
distclean: clean releaseclean

View File

@ -13,24 +13,19 @@ all: html-chunked html-single
html-chunked: $(HTMLDIR)/index.html
html-single: $(HTMLDIR)/MPlayer.html
SYMLINKS_DEPS := $(filter-out $(wildcard *.xml),$(notdir $(wildcard ../en/*.xml)))
xmllint: main.xml $(SYMLINKS_DEPS)
xmllint: main.xml
../xmllint.sh $<
$(HTMLDIR)/default.css:
cp -f ../default.css $(@D)
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css
$(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css
../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
$(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css
$(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) xmllint $(HTMLDIR)/default.css
../xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
../html-chunk.xsl ../html-single.xsl main.xml:
cd .. && sh configure
$(SYMLINKS_DEPS):
ln -s ../en/$@ $@
.PHONY: all html-chunked html-single xmllint

View File

@ -0,0 +1 @@
../en/encoding-guide.xml

1
DOCS/xml/es/radio.xml Symbolic link
View File

@ -0,0 +1 @@
../en/radio.xml

1
DOCS/xml/it/ports.xml Symbolic link
View File

@ -0,0 +1 @@
../en/ports.xml

1
DOCS/xml/it/skin.xml Symbolic link
View File

@ -0,0 +1 @@
../en/skin.xml

View File

@ -0,0 +1 @@
../en/encoding-guide.xml

1
DOCS/xml/zh_CN/faq.xml Symbolic link
View File

@ -0,0 +1 @@
../en/faq.xml

1
DOCS/xml/zh_CN/install.xml Symbolic link
View File

@ -0,0 +1 @@
../en/install.xml

1
DOCS/xml/zh_CN/ports.xml Symbolic link
View File

@ -0,0 +1 @@
../en/ports.xml

1
DOCS/xml/zh_CN/skin.xml Symbolic link
View File

@ -0,0 +1 @@
../en/skin.xml

1
DOCS/xml/zh_CN/tvinput.xml Symbolic link
View File

@ -0,0 +1 @@
../en/tvinput.xml

1
DOCS/xml/zh_CN/usage.xml Symbolic link
View File

@ -0,0 +1 @@
../en/usage.xml

1
DOCS/xml/zh_CN/video.xml Symbolic link
View File

@ -0,0 +1 @@
../en/video.xml