author | Florian Pose <fp@igh-essen.com> |
Tue, 04 Dec 2012 14:26:30 +0100 | |
branch | stable-1.5 |
changeset 2464 | e6cc33cac6a2 |
parent 1917 | 6129a5f715fb |
child 2646 | 0c56c67072a6 |
permissions | -rw-r--r-- |
369 | 1 |
#------------------------------------------------------------------------------ |
2 |
# |
|
3 |
# LaTeX Makefile |
|
4 |
# |
|
5 |
# $Id$ |
|
6 |
# |
|
7 |
#------------------------------------------------------------------------------ |
|
8 |
||
9 |
FILE := ethercat_doc |
|
10 |
||
11 |
LATEX_OPTIONS := -file-line-error-style |
|
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 \ |
1514
85ac1c91045d
Added 'ethercat cstruct' command to output PDO information in C language.
Florian Pose <fp@igh-essen.com>
parents:
1485
diff
changeset
|
16 |
cstruct \ |
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
17 |
data \ |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
18 |
debug \ |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
19 |
domains \ |
1423 | 20 |
download \ |
1485 | 21 |
eoe \ |
1423 | 22 |
foe_read \ |
23 |
foe_write \ |
|
24 |
graph \ |
|
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
25 |
master \ |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
26 |
pdos \ |
1423 | 27 |
reg_read \ |
28 |
reg_write \ |
|
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
29 |
sdos \ |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
30 |
sii_read \ |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
31 |
sii_write \ |
1423 | 32 |
slaves \ |
1917 | 33 |
soe_read \ |
34 |
soe_write \ |
|
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
35 |
states \ |
1423 | 36 |
upload \ |
37 |
version \ |
|
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
38 |
xml |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
39 |
|
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
40 |
EXT_PREFIX := external/ethercat_ |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
41 |
EXT_FILES := $(addprefix $(EXT_PREFIX),$(COMMANDS)) |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
42 |
ETHERCAT_CMD := ../tool/ethercat |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
43 |
ETHERCAT_HELP := $(ETHERCAT_CMD) -h |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
44 |
|
369 | 45 |
#------------------------------------------------------------------------------ |
46 |
||
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
47 |
all: pdf |
369 | 48 |
|
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
49 |
$(EXT_FILES): $(ETHERCAT_CMD) |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
50 |
@mkdir -pv external |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
51 |
@echo Creating $@... |
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
52 |
$(shell $(subst $(EXT_PREFIX),$(ETHERCAT_HELP) ,$@) > $@) |
369 | 53 |
|
1140
cc779f7d2496
Command-line help in the docs.
Florian Pose <fp@igh-essen.com>
parents:
371
diff
changeset
|
54 |
pdf: $(EXT_FILES) |
1202
91d190223daa
Next changes for the documentation.
Florian Pose <fp@igh-essen.com>
parents:
1140
diff
changeset
|
55 |
$(MAKE) -C images |
91d190223daa
Next changes for the documentation.
Florian Pose <fp@igh-essen.com>
parents:
1140
diff
changeset
|
56 |
$(MAKE) -C graphs |
371
97f684433d3b
Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents:
370
diff
changeset
|
57 |
pdflatex $(LATEX_OPTIONS) $(FILE) |
97f684433d3b
Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents:
370
diff
changeset
|
58 |
|
97f684433d3b
Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents:
370
diff
changeset
|
59 |
index: |
97f684433d3b
Improved documentation makefile, removed svn.sty, fixed LaTeX penalties.
Florian Pose <fp@igh-essen.com>
parents:
370
diff
changeset
|
60 |
makeindex $(FILE) |
1306
a27c839d043b
merge -r1566:1573 branches/stable-1.4: Documentation.
Florian Pose <fp@igh-essen.com>
parents:
1289
diff
changeset
|
61 |
makeindex $(FILE).nlo -s nomencl.ist -o $(FILE).nls |
369 | 62 |
|
63 |
clean: |
|
1289
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
64 |
@rm -f \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
65 |
$(FILE).aux \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
66 |
$(FILE).dvi \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
67 |
$(FILE).idx \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
68 |
$(FILE).ilg \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
69 |
$(FILE).ind \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
70 |
$(FILE).lof \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
71 |
$(FILE).log \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
72 |
$(FILE).lol \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
73 |
$(FILE).lot \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
74 |
$(FILE).nlo \ |
1306
a27c839d043b
merge -r1566:1573 branches/stable-1.4: Documentation.
Florian Pose <fp@igh-essen.com>
parents:
1289
diff
changeset
|
75 |
$(FILE).nls \ |
1289
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
76 |
$(FILE).out \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
77 |
$(FILE).pdf \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
78 |
$(FILE).toc \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
79 |
*~ \ |
5b82b6b39c2d
Removed unnecessary modules; renamed references.
Florian Pose <fp@igh-essen.com>
parents:
1202
diff
changeset
|
80 |
images/*.bak |
369 | 81 |
|
82 |
#------------------------------------------------------------------------------ |