ff0711aa2117e11a509ff3a1691b126b0ad95fba
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

1) TORCVSSTABLE = ../tor.0.1.0-branch
2) TORCVSHEAD = ../tor-head
3) 
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

4) WMLBASE = .
5) WMLOPT  = \
6)           -I include \
7)           -D DOCROOT=$(WMLBASE) \
8)           -D IMGROOT=$(WMLBASE)/images \
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

9)           -D TORCVSSTABLE=$(TORCVSSTABLE) \
10)           -D TORCVSHEAD=$(TORCVSHEAD)
11) 
12) WMLFILES=$(wildcard en/*.wml \
13)                     de/*.wml \
14)                     it/*.wml \
15)           )
Peter Palfrader Add translation-status page

Peter Palfrader authored 19 years ago

16) WMIFILES=$(wildcard include/*.wmi \
17)                     en/*.wmi      \
18)                     de/*.wmi      \
19)                     it/*.wmi      \
20)           )
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

21) HTMLFILES = $(patsubst de/%.wml, %.html.de, \
22)             $(patsubst en/%.wml, %.html.en, \
23)             $(patsubst it/%.wml, %.html.it, \
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

24)             $(WMLFILES))))
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

25) DEPFILES =  $(patsubst de/%.wml,.deps/%.html.de.d,   \
26)             $(patsubst en/%.wml,.deps/%.html.en.d,   \
27)             $(patsubst it/%.wml,.deps/%.html.it.d,   \
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

28)             $(WMLFILES))))
29) 
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

30) LANGS=de en it
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

31) 
32) all: $(HTMLFILES)
33) 
34) 
35) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

36) %.html.en: en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

37) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

38) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

39) %.html.de: de/%.wml en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

40) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
41) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

42) %.html.it: it/%.wml en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

43) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
44) 
45) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

46) .deps/%.html.en.d: en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

47) 	@[ -d .deps ] || mkdir .deps
48) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

49) 	lang=`dirname $<` && \
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

50) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
51) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
52) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
53) 	rm -f $$tmpfile
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

54) .deps/%.html.de.d: de/%.wml
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

55) 	@[ -d .deps ] || mkdir .deps
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

56) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

57) 	lang=`dirname $<` && \
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

58) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
59) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
60) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
61) 	rm -f $$tmpfile
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

62) .deps/%.html.it.d: it/%.wml
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

63) 	@[ -d .deps ] || mkdir .deps
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

64) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

65) 	lang=`dirname $<` && \
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

66) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
67) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
68) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
69) 	rm -f $$tmpfile
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

70) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

71) tor-manual-cvs.html.en: $(TORCVSHEAD)/doc/tor.1.in
72) tor-manual.html.en: $(TORCVSSTABLE)/doc/tor.1.in
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

73) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

74) translation-status.html.en: $(LANGS) $(WMIFILES) $(WMLFILES)
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

75) 
76) dep: $(DEPFILES)
77) 
78) clean:
79) 	rm -f $(HTMLFILES) $(DEPFILES)
80) 
81) include $(DEPFILES)