equal
deleted
inserted
replaced
8 |
8 |
9 FILE := ethercat_doc |
9 FILE := ethercat_doc |
10 |
10 |
11 LATEX_OPTIONS := -file-line-error-style |
11 LATEX_OPTIONS := -file-line-error-style |
12 |
12 |
|
13 COMMANDS := \ |
|
14 alias \ |
|
15 config \ |
|
16 data \ |
|
17 debug \ |
|
18 domains \ |
|
19 master \ |
|
20 pdos \ |
|
21 sdos \ |
|
22 download \ |
|
23 upload \ |
|
24 slaves \ |
|
25 sii_read \ |
|
26 sii_write \ |
|
27 states \ |
|
28 xml |
|
29 |
|
30 EXT_PREFIX := external/ethercat_ |
|
31 EXT_FILES := $(addprefix $(EXT_PREFIX),$(COMMANDS)) |
|
32 ETHERCAT_CMD := ../tool/ethercat |
|
33 ETHERCAT_HELP := $(ETHERCAT_CMD) -h |
|
34 |
13 #------------------------------------------------------------------------------ |
35 #------------------------------------------------------------------------------ |
14 |
36 |
15 first: pdf |
37 all: pdf |
16 |
38 |
17 all: dvi pdf |
39 $(EXT_FILES): $(ETHERCAT_CMD) |
|
40 @mkdir -pv external |
|
41 @echo Creating $@... |
|
42 $(shell $(subst $(EXT_PREFIX),$(ETHERCAT_HELP) ,$@) > $@) |
18 |
43 |
19 dvi: |
44 pdf: $(EXT_FILES) |
20 latex $(LATEX_OPTIONS) \\nonstopmode\\input{$(FILE).tex} |
|
21 |
|
22 pdf: |
|
23 pdflatex $(LATEX_OPTIONS) $(FILE) |
45 pdflatex $(LATEX_OPTIONS) $(FILE) |
24 |
46 |
25 index: |
47 index: |
26 makeindex $(FILE) |
48 makeindex $(FILE) |
27 makeindex $(FILE).glo -s nomencl.ist -o $(FILE).gls |
49 makeindex $(FILE).glo -s nomencl.ist -o $(FILE).gls |