Check-in [c0dfec53c7]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add Makefile
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c0dfec53c738eaa3de78ecc1b736b93e896eb0c9
User & Date: sg 2012-08-19 20:03:45
Context
2012-08-20
13:01
update test.txt check-in: ac7933cfa6 user: sg tags: trunk
2012-08-19
20:03
Add Makefile check-in: c0dfec53c7 user: sg tags: trunk
19:54
initial import check-in: c13fd8e1d4 user: sg tags: trunk
Changes

Added Makefile.





































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ICONS_DIR = $(dir $(shell readlink $(shell which asciidoc)))images/icons

FONTS = fonts/arialbd.ttf fonts/arialbi.ttf fonts/ariali.ttf fonts/arial.ttf \
	fonts/courbd.ttf fonts/courbi.ttf fonts/couri.ttf fonts/cour.ttf \
	fonts/timesbd.ttf fonts/timesbi.ttf fonts/timesi.ttf fonts/times.ttf

METRICS = $(patsubst %.ttf,%.xml,$(FONTS))

all: test.pdf

test.pdf: test.svg fonts

font-dir:
	mkdir -p fonts

fonts: font-dir $(FONTS) $(METRICS)

clean:
	rm -f test.pdf test.xml test.fo test.svg

dist-clean: clean
	rm -f $(FONTS) $(METRICS)

%.svg: %.dot
	dot -Tsvg -o$@ $<

%.pdf: %.txt
	a2x --format=pdf --keep-artifacts --fop --fop-opts "-c fop.xconf" --doctype=article --attribute=ascii-ids --attribute=lang=ru --xsltproc-opts="--stringparam alignment justify" --icons-dir=$(ICONS_DIR) --icons $<

fonts/%.ttf: /usr/share/fonts/truetype/msttcorefonts/%.ttf
	cp $< $@

fonts/%.xml: fonts/%.ttf
	fop-ttfreader $< $@