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  +ICONS_DIR = $(dir $(shell readlink $(shell which asciidoc)))images/icons
            2  +
            3  +FONTS = fonts/arialbd.ttf fonts/arialbi.ttf fonts/ariali.ttf fonts/arial.ttf \
            4  +	fonts/courbd.ttf fonts/courbi.ttf fonts/couri.ttf fonts/cour.ttf \
            5  +	fonts/timesbd.ttf fonts/timesbi.ttf fonts/timesi.ttf fonts/times.ttf
            6  +
            7  +METRICS = $(patsubst %.ttf,%.xml,$(FONTS))
            8  +
            9  +all: test.pdf
           10  +
           11  +test.pdf: test.svg fonts
           12  +
           13  +font-dir:
           14  +	mkdir -p fonts
           15  +
           16  +fonts: font-dir $(FONTS) $(METRICS)
           17  +
           18  +clean:
           19  +	rm -f test.pdf test.xml test.fo test.svg
           20  +
           21  +dist-clean: clean
           22  +	rm -f $(FONTS) $(METRICS)
           23  +
           24  +%.svg: %.dot
           25  +	dot -Tsvg -o$@ $<
           26  +
           27  +%.pdf: %.txt
           28  +	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 $<
           29  +
           30  +fonts/%.ttf: /usr/share/fonts/truetype/msttcorefonts/%.ttf
           31  +	cp $< $@
           32  +
           33  +fonts/%.xml: fonts/%.ttf
           34  +	fop-ttfreader $< $@