Skip to content
Snippets Groups Projects
Commit 7f189484 authored by Christoph Knote's avatar Christoph Knote
Browse files

Build doc during dist creation, not after

parent 5d0ee0c4
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,13 @@ build
src/kpp
boxmox*.tar.gz
doc/boxmox*toc
doc/boxmox*aux
doc/boxmox*log
doc/boxmox*pdf
**~
# bc we create this automatically using build_dist.sh
Makefile.am
......
......@@ -29,10 +29,10 @@
#
#######################################################################################
SUBDIRS = src doc
SUBDIRS = src
EXTRA_DIST = src/bison.h src/code.h src/gdata.h src/gdef.h src/scan.h
dist_doc_DATA = README.md doc/kpp_UserManual.pdf
dist_doc_DATA = README.md doc/kpp_UserManual.pdf doc/boxmox_UserManual.pdf
dist_bin_SCRIPTS = scripts/list_BOXMOX_mechanisms \
scripts/new_BOXMOX_experiment \
scripts/new_BOXMOX_experiment_from_example \
......
#!/bin/sh
buildDir=$1
echo
echo " --- prep Makefile.am ---"
echo
# fancy shit: no wildcards in automake, add all files to be distributed with BOXMOX/KPP explicitly
cp Makefile.am_BLUEPRINT Makefile.am
......@@ -10,12 +14,58 @@ distFiles=$(find drv examples case_studies int models util -type f)
#pretty print them 45 char wide dd tab, backslash at end remove backslash last line remove tab first line
printf 'nobase_dist_pkgdata_DATA = %s\n' "${distFiles[*]}" | fmt -w 45 | sed -e 's/\(.*\)$/\t\1 \\/g' | sed '$ s/\\//g' | sed '1 s/\t//g' >> Makefile.am
echo
echo " --- build documentation ---"
echo
cd doc
pdflatex boxmox_UserManual
pdflatex boxmox_UserManual
cd ..
# now standard:
echo
echo " --- aclocal ---"
echo
aclocal
echo
echo " --- autoconf ---"
echo
autoconf
echo
echo " --- automake ---"
echo
automake -a -c
echo
echo " --- makec maintainer-clean ---"
echo
make maintainer-clean
echo
echo " --- configure ---"
echo
./configure --prefix="${buildDir}"
echo
echo " --- make ---"
echo
make
echo
echo " --- make install ---"
echo
make install
echo
echo " --- make dist ---"
echo
make dist
echo
echo " --- make distcheck ---"
echo
make distcheck
......@@ -8,14 +8,8 @@ AM_INIT_AUTOMAKE([-Wall foreign tar-pax])
AC_PROG_CC
AC_PROG_LEX(noyywrap)
AC_PROG_YACC
AC_CHECK_PROG(PDFLATEX, pdflatex, pdflatex)
if test -z "$PDFLATEX"; then
AC_MSG_WARN([Unable to create PDF version of the user manual.])
fi
AM_CONDITIONAL([HAVE_PDFLATEX], test -n "$PDFLATEX")
AC_CONFIG_FILES([
Makefile
src/Makefile
doc/Makefile
])
AC_OUTPUT
docfiles =
if HAVE_PDFLATEX
docfiles += boxmox_UserManual.tex boxmox_UserManual.pdf
boxmox_UserManual.pdf : boxmox_UserManual.tex
@PDFLATEX@ $<
@PDFLATEX@ $<
clean-local:
rm -f *.log *.out *.toc *.aux boxmox_UserManual.pdf
endif
doc_DATA = $(docfiles)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment