~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to doc/bazaar/Makefile

  • Committer: David Allouche
  • Date: 2006-02-17 00:49:50 UTC
  • mfrom: (0.2.9 bzr-launchpad)
  • mto: This revision was merged to the branch mainline in revision 3511.
  • Revision ID: david.allouche@canonical.com-20060217004950-d89e0bcbf359575e
merge TheBazaar documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LARGE_PNG:=$(patsubst %.dia,%.png,$(shell cd large-dia; ls *.dia))
 
2
ALL_PNG:=$(patsubst %.dia,%.png,$(shell cd dia; ls *.dia)) $(LARGE_PNG)
 
3
 
 
4
html: png bzr-launchpad.html
 
5
 
 
6
ps: png bzr-launchpad.ps
 
7
 
 
8
png: $(ALL_PNG)
 
9
 
 
10
clean:
 
11
        rm -f bzr-launchpad.html
 
12
        rm -f *~
 
13
        rm -f bzr-launchpad.ps
 
14
        rm -f *.png
 
15
 
 
16
%.html: html.xsl %.tmml
 
17
        xsltproc $^ > $@
 
18
 
 
19
%.ps: %.tmml
 
20
        texmacs -c $< $@ -x '(quit-TeXmacs)'
 
21
 
 
22
%.tmml: %.tm
 
23
        texmacs -c $< $@  -x '(quit-TeXmacs))'
 
24
 
 
25
%.png: dia/%.dia
 
26
        rm -f $@
 
27
        dia -e $@ $^ > /dev/null 2>&1
 
28
 
 
29
png_size=$(shell echo $(1) | join -o 2.2 - large-dia/sizes)
 
30
 
 
31
%.png: large-dia/%.dia
 
32
        rm -f $@
 
33
        dia -e $@ -s $(call png_size,$@) $< > /dev/null 2>&1
 
34
 
 
35
large-dia/sizes: $(LARGE_PNG)
 
36
        ./write-sizes $@ $^
 
37
 
 
38
 
 
39
.PHONY: html ps png clean