[MPlayer-DOCS] homepage build system
Torinthiel
torinthiel at megapolis.pl
Sat Nov 13 22:58:04 CET 2004
On Sat, Nov 13, 2004 at 10:37:38PM +0100, Diego Biurrun wrote:
>
> Torinthiel writes:
> > DESIGNS := design3 design4 design5 design6 design7
>
> These should be the other way around so design7 gets built first.
>
> > pl_ENCODING := iso-8859-2
>
> hu_ENCODING is also needed.
2x done.
> And yes, this needs to work this way. We will not run code from CVS
> on mphq.
I understand it, otherwise someone could theoretically run anything.
I know we should trust developers, but not THAT MUCH ;)
Anyway, this should work in both cases - when run with absolute path and
with simple 'make' command.
Torinthiel
--
Waclaw "Torinthiel" Schiller GG#: 542916, 3073512
torinthiel(at)megapolis(dot)pl
gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1
"No classmates may be used during this examination"
-------------- next part --------------
DESIGNS := design7 design6 design5 design4 design3
SOURCES := $(wildcard src/*.src.*)
TRANSLATIONS := es hu pl
pl_ENCODING := iso-8859-2
hu_ENCODING := iso-8859-2
ifeq ($(INTERNAL),yes)
SRC2HTML = $(addsuffix $(2).html, $(notdir $(basename $(basename $(1)))))
all: en $(TRANSLATIONS)
# The English homepage requires some special treatment
en: $(call SRC2HTML, $(wildcard ../src/*.src.en))
$(call SRC2HTML, $(wildcard ../src/*.src.en)): %.html : ../src/%.src.en src/upper src/selector src/lower
cat src/upper src/selector $< src/lower > $@
# And the rest of languages...
define lang-def
$(1): $(if $(wildcard src/selector-$(1)),$(call SRC2HTML, $(wildcard ../src/*.src.$(1)),-$(1)))
$(call SRC2HTML, $(wildcard ../src/*.src.en),-$(1)): %-$(1).html : ../src/%.src.$(1) src/upper src/selector-$(1) src/lower
$(if $($(1)_ENCODING),\
sed -e '/text\/html/s/iso-8859-1/$($(1)_ENCODING)/' src/upper | \
cat - src/selector-$(1) $$< src/lower > $$@,\
cat src/upper src/selector-$(1) $$< src/lower > $$@)
endef
endif
$(foreach lang, $(TRANSLATIONS),$(eval $(call lang-def,$(lang))))
ifneq ($(INTERNAL),yes)
.PHONY: all clean $(DESIGNS)
all: $(DESIGNS)
clean:
rm -f $(foreach des, $(DESIGNS), $(wildcard $(des)/*.html))
$(DESIGNS):
make -C $@ -f $(if $(filter-out Makefile,$(MAKEFILE_LIST)), $(MAKEFILE_LIST), ../Makefile) INTERNAL=yes
endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-docs/attachments/20041113/2daba262/attachment.pgp>
More information about the MPlayer-DOCS
mailing list