documentation/Makefile
author Florian Pose <fp@igh-essen.com>
Fri, 19 Jun 2009 11:54:46 +0000
branchstable-1.4
changeset 1701 ec5542b4f62a
parent 1671 bb3215fe5c65
permissions -rw-r--r--
Added r8169 driver for kernel 2.6.24.
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 \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    19
	master \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    20
	pdos \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    21
	sdos \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    22
	download \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    23
	upload \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    24
	slaves \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    25
	sii_read \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    26
	sii_write \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    27
	states \
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    28
	xml
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    29
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    30
EXT_PREFIX := external/ethercat_
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    31
EXT_FILES := $(addprefix $(EXT_PREFIX),$(COMMANDS))
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    32
ETHERCAT_CMD := ../tool/ethercat
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    33
ETHERCAT_HELP := $(ETHERCAT_CMD) -h
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    34
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    35
#------------------------------------------------------------------------------
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    36
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    37
all: pdf
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    38
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    39
$(EXT_FILES): $(ETHERCAT_CMD)
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    40
	@mkdir -pv external
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    41
	@echo Creating $@...
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    42
	$(shell $(subst $(EXT_PREFIX),$(ETHERCAT_HELP) ,$@) > $@)
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    43
1140
cc779f7d2496 Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents: 371
diff changeset
    44
pdf: $(EXT_FILES)
1630
ffa89570d84f merge -r1424:1428 trunk: TODO, docs.
Florian Pose <fp@igh-essen.com>
parents: 1140
diff changeset
    45
	$(MAKE) -C images
ffa89570d84f merge -r1424:1428 trunk: TODO, docs.
Florian Pose <fp@igh-essen.com>
parents: 1140
diff changeset
    46
	$(MAKE) -C graphs
371
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    47
	pdflatex $(LATEX_OPTIONS) $(FILE)
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    48
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    49
index:
97f684433d3b Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents: 370
diff changeset
    50
	makeindex $(FILE)
1669
9edbe472941d Nomenclature and index.
Florian Pose <fp@igh-essen.com>
parents: 1657
diff changeset
    51
	makeindex $(FILE).nlo -s nomencl.ist -o $(FILE).nls
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    52
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    53
clean:
1657
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    54
	@rm -f \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    55
		$(FILE).aux \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    56
		$(FILE).dvi \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    57
		$(FILE).idx \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    58
		$(FILE).ilg \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    59
		$(FILE).ind \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    60
		$(FILE).lof \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    61
		$(FILE).log \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    62
		$(FILE).lol \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    63
		$(FILE).lot \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    64
		$(FILE).nlo \
1671
bb3215fe5c65 Ignore *.nls.
Florian Pose <fp@igh-essen.com>
parents: 1669
diff changeset
    65
		$(FILE).nls \
1657
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    66
		$(FILE).out \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    67
		$(FILE).pdf \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    68
		$(FILE).toc \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    69
		*~ \
3dbdb7392d7b merge -c1539 trunk: Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents: 1630
diff changeset
    70
		images/*.bak
369
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    71
7920ca086e5c Moved doc into trunk
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    72
#------------------------------------------------------------------------------