Update of /cvsroot/mplayer/main/DOCS/xml In directory mail:/var2/tmp/cvs-serv20547 Modified Files: Makefile Log Message: Structure simplified, support for building single languages by Torinthiel. Index: Makefile =================================================================== RCS file: /cvsroot/mplayer/main/DOCS/xml/Makefile,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- Makefile 24 Jan 2004 22:31:11 -0000 1.17 +++ Makefile 29 Jan 2004 18:43:54 -0000 1.18 @@ -18,29 +18,25 @@ @echo "********" @echo "all : Build everything (default)." @echo "html-single : Build HTML documentation (single file)." + @echo "html-single-LANG : As above, but only one language." @echo "html-chunked : Build HTML documentation (multiple files)." + @echo "html-chunked-LANG : As above, but only one language." @echo "clean-html-single : Purge the 'HTML-single' directory." @echo "clean-html-chunked: Purge the 'HTML' directory." @echo "clean : Purge the 'HTML' and 'HTML-single' directories." @echo "distclean : Remove ALL generated files." + @echo "distclean-LANG : Remove ALL generated files for one language." + @echo "Substitute LANG for one of $(SUBDIRS)" -.PHONY: html-chunked -html-chunked: xsltproc.sh xmllint.sh +.PHONY: html-chunked chunked-dir +html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addsuffix -chunked,$(SUBDIRS)) +chunked-dir: test -d $(HTML_CHUNKED) || mkdir $(HTML_CHUNKED) - for dir in $(SUBDIRS); do\ - test -f $$dir/Makefile &&\ - (test -d $(HTML_CHUNKED)/$$dir || mkdir $(HTML_CHUNKED)/$$dir) &&\ - if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir html-chunked; then :; else exit 1; fi;\ - done -.PHONY: html-single -html-single: xsltproc.sh xmllint.sh +.PHONY: html-single single-dir +html-single: xsltproc.sh xmllint.sh single-dir $(addsuffix -single,$(SUBDIRS)) +single-dir: test -d $(HTML_SINGLE) || mkdir $(HTML_SINGLE) - for dir in $(SUBDIRS); do\ - test -f $$dir/Makefile &&\ - (test -d $(HTML_SINGLE)/$$dir || mkdir $(HTML_SINGLE)/$$dir) &&\ - if $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$$dir/MPlayer.html -C $$dir html-single; then :; else exit 1; fi;\ - done .PHONY: clean-html-chunked clean-html-chunked: @@ -51,14 +47,27 @@ -rm -rf $(HTML_SINGLE) .PHONY: distclean -distclean: clean-html-chunked clean-html-single - for dir in $(SUBDIRS); do\ - test -f $$dir/Makefile &&\ - if $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$$dir -C $$dir distclean ; then :; else exit 1; fi;\ - done +distclean: clean-html-chunked clean-html-single $(addprefix distclean-,$(SUBDIRS)) -rm -f html-chunk.xsl html-single.xsl xsltproc.sh xmllint.sh xsltproc.sh xmllint.sh: sh configure clean: clean-html-chunked clean-html-single + +define lang-def +.PHONY: html-chunked-$(1) html-single-$(1) distclean-$(1) +html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir + (test -d $(HTML_CHUNKED)/$(1) || mkdir $(HTML_CHUNKED)/$(1)) + $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) html-chunked + +html-single-$(1): xsltproc.sh xmllint.sh single-dir + (test -d $(HTML_SINGLE)/$(1) || mkdir $(HTML_SINGLE)/$(1)) + $(MAKE) HTMLFILE=../$(HTML_SINGLE)/$(1)/MPlayer.html -C $(1) html-single + +distclean-$(1): + -rm -rf $(HTML_SINGLE)/$(1) $(HTML_CHUNKED)/$(1) + $(MAKE) HTMLDIR=../$(HTML_CHUNKED)/$(1) -C $(1) distclean +endef + +$(foreach lang, $(SUBDIRS),$(eval $(call lang-def,$(lang))))
On Thu, Jan 29, 2004 at 07:43:56PM +0100, Diego Biurrun CVS wrote:
Update of /cvsroot/mplayer/main/DOCS/xml In directory mail:/var2/tmp/cvs-serv20547
Modified Files: Makefile Log Message: Structure simplified, support for building single languages by Torinthiel.
Holy shit, I've sent a wrong patch. It looks for en-single and so on, but defines html-single-en. I'll reverse and re-commit. Torinthiel -- Waclaw "Torinthiel" Schiller GG#: 542916, 3073512 torinthiel(at)wp(dot)pl gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1 "No classmates may be used during this examination"
Diego Biurrun CVS wrote:
Log Message: Structure simplified, support for building single languages by Torinthiel. +html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addsuffix -chunked,$(SUBDIRS)) +chunked-dir:
+html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
This is make 3.80-ism, doesn't work with 3.79. I'll send a patch which changes it to a simple and portable for loop. -- Gabucino MPlayer Core Team
On Thu, Feb 05, 2004 at 08:11:35AM +0100, Gabucino wrote:
Diego Biurrun CVS wrote:
Log Message: Structure simplified, support for building single languages by Torinthiel. +html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addsuffix -chunked,$(SUBDIRS)) +chunked-dir:
+html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
This is make 3.80-ism, doesn't work with 3.79. I'll send a patch which changes it to a simple and portable for loop.
Find another way. Flow control of a makefile does NOT belong in shell commands. It breaks make -n. Rich
D Richard Felker III wrote:
This is make 3.80-ism, doesn't work with 3.79. I'll send a patch which changes it to a simple and portable for loop. Find another way. Flow control of a makefile does NOT belong in shell commands. It breaks make -n. I know, make -n is broken by nature. Who cares? :o Patch attached.
-- Gabucino MPlayer Core Team
Gabucino wrote:
Patch attached. P.s.: yes I know much more can be cut/simplified but this is only an example.
-- Gabucino MPlayer Core Team
Gabucino writes:
D Richard Felker III wrote:
This is make 3.80-ism, doesn't work with 3.79. I'll send a patch which changes it to a simple and portable for loop. Find another way. Flow control of a makefile does NOT belong in shell commands. It breaks make -n. I know, make -n is broken by nature. Who cares? :o Patch attached.
This patch removes the ability to build single languages. That's not acceptable. Why don't you just upgrade to make 3.80? Or find another way to build single languages. Diego
On Thu, Feb 05, 2004 at 08:11:35AM +0100, Gabucino wrote:
Diego Biurrun CVS wrote:
Log Message: Structure simplified, support for building single languages by Torinthiel. +html-chunked: xsltproc.sh xmllint.sh chunked-dir $(addsuffix -chunked,$(SUBDIRS)) +chunked-dir:
+html-chunked-$(1): xsltproc.sh xmllint.sh chunked-dir
This is make 3.80-ism, doesn't work with 3.79. I'll send a patch which changes it to a simple and portable for loop.
Than why haven't you objected when I have proposed it? Beside if so it's not PATCH what is needed, but reverse. PS Sorry it's so late, but I wasn't at home. Torinthiel
-- Gabucino MPlayer Core Team
_______________________________________________ MPlayer-DOCS mailing list MPlayer-DOCS@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-docs
-- Waclaw "Torinthiel" Schiller GG#: 542916, 3073512 torinthiel(at)wp(dot)pl gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1 "No classmates may be used during this examination"
participants (5)
-
D Richard Felker III -
Diego Biurrun -
diego@mplayerhq.hu -
Gabucino -
Torinthiel