[MPlayer-DOCS] CVS: homepage Makefile,NONE,1.1

Diego Biurrun CVS syncmail at mplayerhq.hu
Sun Nov 14 00:20:43 CET 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/homepage
In directory mail:/var2/tmp/cvs-serv32037

Added Files:
	Makefile 
Log Message:
new homepage build system by Torinthiel <torinthiel at megapolis.pl>


--- NEW FILE ---
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





More information about the MPlayer-DOCS mailing list