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

Add dist file includes automatisation.

parent 8f0d240b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
SUBDIRS = src doc
EXTRA_DIST = src/bison.h src/code.h src/gdata.h src/gdef.h src/scan.h
dist_doc_DATA = README.md
dist_doc_DATA = README.md doc/kpp_UserManual.pdf
dist_bin_SCRIPTS = scripts/list_BOXMOX_mechanisms \
scripts/new_BOXMOX_experiment \
scripts/new_BOXMOX_experiment_from_example \
......@@ -51,5 +51,3 @@ all-local:
@echo "export PATH=\$$KPP_HOME/bin:\$$KPP_HOME/boxmox/bin:\$$PATH"
@echo " "
nobase_dist_pkgdata_DATA = drv/boxmox_adjoint.f90 drv/boxmox.f90
#drv examples case_studies int models util
#!/bin/sh
buildDir=$1
# fancy shit: no wildcards in automake, add all files to be distributed with BOXMOX/KPP explicitly
cp Makefile.am_BLUEPRINT Makefile.am
# list all files in these subdirectories
distFiles=$(find drv examples case_studies int models util -type file)
#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
# now standard:
aclocal
autoconf
automake -a -c
......
......@@ -4,7 +4,7 @@ dnl Finally run make to generate the project.
AC_INIT([boxmox], [1.8], [christoph.knote@med.uni-augsburg.de])
dnl we use the build type foreign here instead of gnu because I do not have a NEWS file and similar, yet.
AM_INIT_AUTOMAKE([-Wall foreign])
AM_INIT_AUTOMAKE([-Wall foreign tar-ustar])
AC_PROG_CC
AC_PROG_LEX(noyywrap)
AC_PROG_YACC
......
docfiles = kpp_UserManual.pdf
docfiles =
if HAVE_PDFLATEX
docfiles += boxmox_UserManual.pdf
......
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