documentation/Makefile
author Florian Pose <fp@igh-essen.com>
Mon, 26 Jan 2009 14:17:01 +0000
branchstable-1.4
changeset 1696 c9bfe98e00d5
parent 1671 bb3215fe5c65
permissions -rw-r--r--
merge -c1622 branches/1.4-foe: Fixed seg_size parameter when processing an CoE Upload Segment Response.
#------------------------------------------------------------------------------
#
#  LaTeX Makefile
#
#  $Id$
#
#------------------------------------------------------------------------------

FILE := ethercat_doc

LATEX_OPTIONS := -file-line-error-style

COMMANDS := \
	alias \
	config \
	data \
	debug \
	domains \
	master \
	pdos \
	sdos \
	download \
	upload \
	slaves \
	sii_read \
	sii_write \
	states \
	xml

EXT_PREFIX := external/ethercat_
EXT_FILES := $(addprefix $(EXT_PREFIX),$(COMMANDS))
ETHERCAT_CMD := ../tool/ethercat
ETHERCAT_HELP := $(ETHERCAT_CMD) -h

#------------------------------------------------------------------------------

all: pdf

$(EXT_FILES): $(ETHERCAT_CMD)
	@mkdir -pv external
	@echo Creating $@...
	$(shell $(subst $(EXT_PREFIX),$(ETHERCAT_HELP) ,$@) > $@)

pdf: $(EXT_FILES)
	$(MAKE) -C images
	$(MAKE) -C graphs
	pdflatex $(LATEX_OPTIONS) $(FILE)

index:
	makeindex $(FILE)
	makeindex $(FILE).nlo -s nomencl.ist -o $(FILE).nls

clean:
	@rm -f \
		$(FILE).aux \
		$(FILE).dvi \
		$(FILE).idx \
		$(FILE).ilg \
		$(FILE).ind \
		$(FILE).lof \
		$(FILE).log \
		$(FILE).lol \
		$(FILE).lot \
		$(FILE).nlo \
		$(FILE).nls \
		$(FILE).out \
		$(FILE).pdf \
		$(FILE).toc \
		*~ \
		images/*.bak

#------------------------------------------------------------------------------