documentation/images/Makefile
author Florian Pose <fp@igh-essen.com>
Thu, 21 Jan 2010 16:41:41 +0100
changeset 1778 94dbb44884ec
parent 1771 7183fe5f27fa
permissions -rw-r--r--
Basic configuration for tty.
1089
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#-----------------------------------------------------------------------------
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
#
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
# $Id$
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#-----------------------------------------------------------------------------
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
FIGS := \
1094
eb0258e53236 App interface; doxygen; bib.
Florian Pose <fp@igh-essen.com>
parents: 1089
diff changeset
     8
	app-config.fig \
1293
a2a03519ee47 Prcess data; slave configuration + attachment; typos.
Florian Pose <fp@igh-essen.com>
parents: 1203
diff changeset
     9
	attach.fig \
1517
b99f2f9cb73f DC documentation; new callback mechanism; cstruct
Florian Pose <fp@igh-essen.com>
parents: 1293
diff changeset
    10
	dc.fig \
1089
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
	fmmus.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
	fsm-coedown.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
	fsm-eoe.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    14
	interrupt.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
	master-locks.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
	masters.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    17
	phases.fig \
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    18
	statetrans.fig
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
1771
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    20
FIGPDFS = $(FIGS:.fig=.pdf)
1089
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
1771
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    22
SVGS := \
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    23
	architecture.svg
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    24
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    25
SVGPDFS = $(SVGS:.svg=.pdf)
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    26
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    27
all: $(FIGPDFS) $(SVGPDFS)
1089
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    29
%.pdf: %.fig
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    30
	fig2dev -L pdf -z A4 -p xxx -c $< $@	
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
1771
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    32
%.pdf: %.svg
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    33
	inkscape --export-pdf=$@ $<
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    34
1089
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
clean:
1771
7183fe5f27fa Auto-generate architecture pdf.
Florian Pose <fp@igh-essen.com>
parents: 1588
diff changeset
    36
	@rm -rv $(FIGPDFS) $(SVGPDFS)
1089
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    37
7af3a96eca73 Generate pdfs with makefile.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
#-----------------------------------------------------------------------------