Makefile.am 1.16 KB
Newer Older
1 2 3 4 5
#Copying and distribution of this file, with or without modification,
#are permitted in any medium without royalty provided the copyright
#notice and this notice are preserved.  This file is offered as-is,
#without any warranty

6 7 8 9 10
EXTRA_DIST=	latex_include_generator.sh \
		schema_archi_flexisip_active-active.pdf \
		schema_archi_flexisip_dead-active.pdf \
		schema_archi_flexisip_active-active.svg \
		schema_archi_flexisip_dead-active.svg \
11 12 13
		bc_logo.png \
		GFDL.txt \
		README
14

15
guide=flexisip_guide
16 17
guide_tex=$(srcdir)/${guide}.tex
guide_pdf=$(top_builddir)/doc/${guide}.pdf
18

19
docfiles=$(guide_tex) $(top_srcdir)/AUTHORS $(top_srcdir)/COPYING $(top_srcdir)/ChangeLog $(top_srcdir)/NEWS $(top_srcdir)/README
20

21 22
if GENERATE_DOC
docfiles +=$(guide_pdf)
23

24
CLEANFILES = *.log *.toc *.out *.log *.tmp ${guide_pdf} *.aux *.tmp.tex
25

26
${guide_pdf}: $(srcdir)/${guide}.tex $(top_builddir)/src/flexisip
27
	$(srcdir)/latex_include_generator.sh
28
# Several times to make sure the TOC is up-to-date
29
	- pdflatex --interaction=nonstopmode  "\newcommand\flexisipversion{ $(VERSION)}\input{$(guide_tex)}"
30
endif
31

Guillaume Beraudo's avatar
Guillaume Beraudo committed
32
fldocdir=$(datadir)/doc/$(PACKAGE)-$(VERSION)
33
fldoc_DATA = $(docfiles)
34

35 36
dist_fldoc_DATA=$(guide_tex)

37

38