Subversion Repositories svn LFS-FR

Rev

Rev 7248 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7249 jlepiller 1
TARGETS := faq-fr.html faq-lfs-fr.html faq-blfs-fr.html
7247 jlepiller 2
 
7249 jlepiller 3
 
4
all: $(TARGETS:%.html=generated/%.html)
5
 
7247 jlepiller 6
LANG_fr.po:=fr_FR.UTF-8
7
 
7249 jlepiller 8
.PHONY: generated
7247 jlepiller 9
 
10
.PRECIOUS: %.po
11
 
7249 jlepiller 12
generated:
13
	mkdir -p generated
14
 
15
faq-lfs-en.html:
7247 jlepiller 16
	wget -c http://linuxfromscratch.org/lfs/faq.html -O - | sed '/id="footer"/,$$d' | sed '/DOCTYPE/,/class="main"/d' | sed '339s|</dl>|</dl>\n      <dl>|' > $@
17
 
7249 jlepiller 18
faq-blfs-en.html:
19
	wget -c http://linuxfromscratch.org/blfs/faq.html -O - | sed '/id="footer"/,$$d' | sed '/DOCTYPE/,/class="main"/d' | sed '339s|</dl>|</dl>\n      <dl>|' > $@
20
 
21
faq-en.html:
22
	wget -c http://linuxfromscratch.org/faq/index.html -O - | sed '/id="footer"/,$$d' | sed '/DOCTYPE/,/class="main"/d' | sed '339s|</dl>|</dl>\n      <dl>|' > $@
23
 
24
complete.html: faq-en.html faq-blfs-en.html faq-lfs-en.html
25
	cat $^ > $@
26
 
27
%.po: complete.html
7248 jlepiller 28
	LANG=$(LANG_$@) po4a-updatepo -f xhtml -m $< -p $@
7247 jlepiller 29
 
7249 jlepiller 30
generated/faq-%.html: faq-en.html %.po generated
7248 jlepiller 31
	$(LANG_EXPORT) po4a-translate -k 0 -f xhtml -m $< -l $@ -p $(word 2,$^)
7247 jlepiller 32
 
7249 jlepiller 33
generated/faq-lfs-%.html: faq-lfs-en.html %.po generated
34
	$(LANG_EXPORT) po4a-translate -k 0 -f xhtml -m $< -l $@ -p $(word 2,$^)
35
 
36
generated/faq-blfs-%.html: faq-blfs-en.html %.po generated
37
	$(LANG_EXPORT) po4a-translate -k 0 -f xhtml -m $< -l $@ -p $(word 2,$^)
38
 
7247 jlepiller 39
clean:
7249 jlepiller 40
	rm -f *.html
41
	rm -rf generated