documentation/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 26 Jun 2009 08:00:47 +0000
changeset 1484 1c9151455b65
parent 1423 41e3baa2da23
child 1485 5ddc3a455059
permissions -rw-r--r--
Debug statements with EC_DBG() in EoE code.
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#------------------------------------------------------------------------------
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
#
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     3
#  LaTeX Makefile
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  $Id$
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#------------------------------------------------------------------------------
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
FILE := ethercat_doc
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
LATEX_OPTIONS := -file-line-error-style
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    12
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    13
COMMANDS := \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    14
	alias \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    15
	config \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    16
	data \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    17
	debug \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    18
	domains \
1423
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    19
	download \
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    20
	foe_read \
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    21
	foe_write \
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    22
	graph \
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    23
	master \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    24
	pdos \
1423
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    25
	reg_read \
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    26
	reg_write \
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    27
	sdos \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    28
	sii_read \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    29
	sii_write \
1423
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    30
	slaves \
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    31
	states \
1423
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    32
	upload \
41e3baa2da23 Updated command doc.
Florian Pose <fp@igh-essen.com>
parents: 1306
diff changeset
    33
	version \
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    34
	xml
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    35
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    36
EXT_PREFIX := external/ethercat_
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    37
EXT_FILES := $(addprefix $(EXT_PREFIX),$(COMMANDS))
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    38
ETHERCAT_CMD := ../tool/ethercat
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    39
ETHERCAT_HELP := $(ETHERCAT_CMD) -h
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    40
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    41
#------------------------------------------------------------------------------
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    42
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    43
all: pdf
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    44
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    45
$(EXT_FILES): $(ETHERCAT_CMD)
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    46
	@mkdir -pv external
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    47
	@echo Creating $@...
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    48
	$(shell $(subst $(EXT_PREFIX),$(ETHERCAT_HELP) ,$@) > $@)
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    49
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    50
pdf: $(EXT_FILES)
1202
91d190223daa Next changes for the documentation.
Florian Pose <fp@igh-essen.com>
parents: 1140
diff changeset
    51
	$(MAKE) -C images
91d190223daa Next changes for the documentation.
Florian Pose <fp@igh-essen.com>
parents: 1140
diff changeset
    52
	$(MAKE) -C graphs
371
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    53
	pdflatex $(LATEX_OPTIONS) $(FILE)
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    54
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    55
index:
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    56
	makeindex $(FILE)
1306
a27c839d043b merge -r1566:1573 branches/stable-1.4: Documentation.
Florian Pose <fp@igh-essen.com>
parents: 1289
diff changeset
    57
	makeindex $(FILE).nlo -s nomencl.ist -o $(FILE).nls
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    58
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    59
clean:
1289
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    60
	@rm -f \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    61
		$(FILE).aux \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    62
		$(FILE).dvi \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    63
		$(FILE).idx \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    64
		$(FILE).ilg \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    65
		$(FILE).ind \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    66
		$(FILE).lof \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    67
		$(FILE).log \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    68
		$(FILE).lol \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    69
		$(FILE).lot \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    70
		$(FILE).nlo \
1306
a27c839d043b merge -r1566:1573 branches/stable-1.4: Documentation.
Florian Pose <fp@igh-essen.com>
parents: 1289
diff changeset
    71
		$(FILE).nls \
1289
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    72
		$(FILE).out \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    73
		$(FILE).pdf \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    74
		$(FILE).toc \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    75
		*~ \
5b82b6b39c2d Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1202
diff changeset
    76
		images/*.bak
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    77
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    78
#------------------------------------------------------------------------------