1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 22:52:18 +00:00
mpv/DOCS/xml/Makefile.inc
diego bcdf7c0b3d 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
2010-05-03 23:00:58 +00:00

32 lines
838 B
Makefile

#
# Makefile.inc for Makefiles in subdirectories.
#
HTML_CHUNK_XSL := ../html-chunk.xsl
CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
HTML_SINGLE_XSL := ../html-single.xsl
SINGLE_XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
# This is the main target...
all: html-chunked html-single
html-chunked: $(HTMLDIR)/index.html
html-single: $(HTMLDIR)/MPlayer.html
xmllint: main.xml
../xmllint.sh $<
$(HTMLDIR)/default.css:
cp -f ../default.css $(@D)
$(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) xmllint $(HTMLDIR)/default.css
../xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
../html-chunk.xsl ../html-single.xsl main.xml:
cd .. && sh configure
.PHONY: all html-chunked html-single xmllint