mirror of https://github.com/mpv-player/mpv
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:
parent
eaff21c633
commit
bcdf7c0b3d
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../en/encoding-guide.xml
|
|
@ -0,0 +1 @@
|
|||
../en/radio.xml
|
|
@ -0,0 +1 @@
|
|||
../en/ports.xml
|
|
@ -0,0 +1 @@
|
|||
../en/skin.xml
|
|
@ -0,0 +1 @@
|
|||
../en/encoding-guide.xml
|
|
@ -0,0 +1 @@
|
|||
../en/faq.xml
|
|
@ -0,0 +1 @@
|
|||
../en/install.xml
|
|
@ -0,0 +1 @@
|
|||
../en/ports.xml
|
|
@ -0,0 +1 @@
|
|||
../en/skin.xml
|
|
@ -0,0 +1 @@
|
|||
../en/tvinput.xml
|
|
@ -0,0 +1 @@
|
|||
../en/usage.xml
|
|
@ -0,0 +1 @@
|
|||
../en/video.xml
|
Loading…
Reference in New Issue