diff --git a/Makefile.am b/Makefile.am_BLUEPRINT similarity index 93% rename from Makefile.am rename to Makefile.am_BLUEPRINT index b572d85d9e28b4964289c13838b6919708f8df95..43f37f2576a8aea783019725e35b206a9d82908a 100644 --- a/Makefile.am +++ b/Makefile.am_BLUEPRINT @@ -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 diff --git a/build_dist.bash b/build_dist.bash index f2849ba2145a111ea2ed05c868e06b891f2aa42a..759803c80421afa8c4a4fe5b87e76cdc491c8d24 100755 --- a/build_dist.bash +++ b/build_dist.bash @@ -1,6 +1,16 @@ #!/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 diff --git a/configure.ac b/configure.ac index 4c9dcfcd9a6d01f5aaaeccac6575b4f235e17328..7aa143d332f37a54fe1ade1438c3e2cd07f0779a 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/doc/Makefile.am b/doc/Makefile.am index bfe48efd272913c0c827a048720d9c930e8c069b..98bf4e1f0aa3cbbe119115dfd387ea7e238b41f0 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -docfiles = kpp_UserManual.pdf +docfiles = if HAVE_PDFLATEX docfiles += boxmox_UserManual.pdf