view DOCS/xml/Makefile.inc @ 11623:ecaf7047b6e8

Patch from the author, Zoltan Hidvegi: The filmdint filter does not handle NTSC "telecined" 15fps movies where there is a frame break in the middle of every second NTSC frame, it outputs only 15 frames for every 30 input frames, ignoring the io option. You can notice this during encoding such a sequence you will have lots of diplicate frames / skip frames messages. The patch below fixes this.
author rfelker
date Thu, 11 Dec 2003 04:47:42 +0000
parents c35bdb0a16eb
children 19919e913e3d
line wrap: on
line source

#
# Makefile.inc for Makefiles in subdirectories.
#

# Use customized html-chunk.xsl and/or html-single.xsl file if they exist...
# Also add html-common.xsl to depends if it exists.
ifeq (html-chunk.xsl,$(wildcard html-chunk.xsl))
HTML_CHUNK_XSL := html-chunk.xsl
ifeq (html-common.xsl,$(wildcard html-common.xsl))
CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) html-common.xsl ../html-chunk.xsl ../html-common.xsl
else
CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-chunk.xsl ../html-common.xsl
endif
else
HTML_CHUNK_XSL := ../html-chunk.xsl
CHUNK_XSL_DEPS := $(HTML_CHUNK_XSL) ../html-common.xsl
endif

ifeq (html-single.xsl,$(wildcard html-single.xsl))
HTML_SINGLE_XSL := html-single.xsl
ifeq (html-common.xsl,$(wildcard html-common.xsl))
XSL_DEPS := $(HTML_SINGLE_XSL) html-common.xsl ../html-single.xsl ../html-common.xsl
else
XSL_DEPS := $(HTML_SINGLE_XSL) ../html-single.xsl ../html-common.xsl
endif
else
HTML_SINGLE_XSL := ../html-single.xsl
XSL_DEPS := $(HTML_SINGLE_XSL) ../html-common.xsl
endif

# Fall back to the default HTML stylesheet if none is specified.
HTML_STYLESHEET ?= ../default.css

# This is the main target...
all: html-chunked html-single
html-chunked: $(HTMLDIR)/index.html
html-single: $(HTMLFILE)

$(HTMLDIR)/index.html: documentation.xml $(CHUNK_XSL_DEPS)
	@if test "$(HTMLDIR)" = "" ; then \
		echo "Error: HTMLDIR not set!!!"; \
		echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
		echo "Don't do this!"; \
		false; \
	fi
	@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): documentation.xml $(XSL_DEPS)
	@if test "$(HTMLFILE)" = "" ; then \
		echo "Error: HTMLFILE not set!!!"; \
		echo "Typically this means, that you've run make from a subdir of DOCS/xml."; \
		echo "Don't do this!"; \
		false; \
	fi
	@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)`
	../xsltproc.sh $(HTMLFILE) $(HTML_SINGLE_XSL) $<

../html-chunk.xsl ../html-single.xsl:
	cd .. && sh configure

distclean:
	@if test "$(USE_SYMLINKS)" = "yes" ; then \
		rm -f `find *.xml -type l`; \
	fi