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

Introduce build script

parent 8e84416f
No related branches found
No related tags found
No related merge requests found
......@@ -10,14 +10,7 @@ build:
- DEBIAN_FRONTEND=noninteractive apt-get -qq install wget patch make gcc gfortran flex bison texlive autoconf autotools-dev
- "[ -f ./version ] && export VERSION=$(cat ./version)"
script:
- aclocal
- autoconf
- automake -a -c
- ./configure --prefix="$CI_PROJECT_DIR/build"
- make
- make install
- make dist
- make distcheck
- . build_dist.bash "$CI_PROJECT_DIR/build"
artifacts:
name: boxmox-dist-$CI_COMMIT_SHORT_SHA
paths:
......
......@@ -32,9 +32,6 @@
SUBDIRS = src doc
EXTRA_DIST = src/bison.h src/code.h src/gdata.h src/gdef.h src/scan.h
nobase_dist_pkgdata_DATA = drv/boxmox_adjoint.f90 drv/boxmox.f90
#drv examples case_studies int models util
dist_doc_DATA = README.md
dist_bin_SCRIPTS = scripts/list_BOXMOX_mechanisms \
scripts/new_BOXMOX_experiment \
......@@ -53,3 +50,6 @@ all-local:
@echo "export KPP_HOME=${prefix}"
@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
aclocal
autoconf
automake -a -c
./configure --prefix="${buildDir}"
make
make install
make dist
make distcheck
doc_DATA = kpp_UserManual.pdf
docfiles = kpp_UserManual.pdf
if HAVE_PDFLATEX
doc_DATA += boxmox_UserManual.pdf
docfiles += boxmox_UserManual.pdf
boxmox_UserManual.pdf : boxmox_UserManual.tex
@pdflatex@ $<
@pdflatex@ $<
......@@ -10,4 +10,4 @@ clean-local:
rm -f *.log *.out *.toc *.aux boxmox_UserManual.pdf
endif
dist_doc_DATA = $(doc_DATA)
\ No newline at end of file
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