aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make
diff options
context:
space:
mode:
Diffstat (limited to 'reproduce/src/make')
-rw-r--r--reproduce/src/make/dependencies-build-rules.mk2
-rw-r--r--reproduce/src/make/dependencies.mk24
-rw-r--r--reproduce/src/make/initialize.mk11
-rw-r--r--reproduce/src/make/paper.mk4
4 files changed, 30 insertions, 11 deletions
diff --git a/reproduce/src/make/dependencies-build-rules.mk b/reproduce/src/make/dependencies-build-rules.mk
index 99e0b25..e0d91ef 100644
--- a/reproduce/src/make/dependencies-build-rules.mk
+++ b/reproduce/src/make/dependencies-build-rules.mk
@@ -48,7 +48,7 @@
# 4: Extra configuration options.
# 5: Extra options/arguments to pass to Make.
# 6: Step to run between `make' and `make install': usually `make check'.
-gbuild = if [ x$(static_build) = xyes ] && $(3)x = staticx ]; then \
+gbuild = if [ x$(static_build) = xyes ] && [ $(3)x = staticx ]; then \
export LDFLAGS="$$LDFLAGS -static"; \
fi; \
check="$(6)"; \
diff --git a/reproduce/src/make/dependencies.mk b/reproduce/src/make/dependencies.mk
index f24fafc..70b0a9e 100644
--- a/reproduce/src/make/dependencies.mk
+++ b/reproduce/src/make/dependencies.mk
@@ -42,7 +42,7 @@ ildir = $(BDIR)/dependencies/installed/lib
# Define the top-level programs to build (installed in `.local/bin', so for
# Coreutils, only one of its executables is enough).
-top-level-programs = ls gawk gs grep libtool sed git astnoisechisel
+top-level-programs = ls gawk gs grep libtool sed git tex astnoisechisel
all: $(foreach p, $(top-level-programs), $(ibdir)/$(p))
# Other basic environment settings.
@@ -239,4 +239,24 @@ $(ibdir)/astnoisechisel: $(tdir)/gnuastro-$(gnuastro-version).tar.lz \
$(ildir)/libgit2.a \
$(call gbuild,$(subst $(tdir)/,,$<), gnuastro-$(gnuastro-version), \
- static, , -j8, make check -j8)
+ static, --enable-static=yes --enable-shared=no, -j8, \
+ make check -j8)
+
+$(ibdir)/tex:
+
+ # First we'll download the tarball. Note that since the most recent
+ # installer is downloaded by day, the installer's version is hard
+ # to configure at this stage.
+ #wget -O$(tdir)/install-tl-unx.tar.gz \
+ # http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
+
+ # Unpack, enter the directory and run the installer.
+ topdir=$$(pwd)
+ cd $(ddir)
+ tar xf $(tdir)/install-tl-unx.tar.gz
+ cd install-tl-*
+ sed -e's|@installdir[@]|$(idir)|g' -e's|@topdir[@]|'"$$topdir"'|g' \
+ $$topdir/reproduce/config/pipeline/texlive.conf > texlive.conf
+ ./install-tl --profile=texlive.conf
+ cd ..
+ rm -rf install-tl-*
diff --git a/reproduce/src/make/initialize.mk b/reproduce/src/make/initialize.mk
index 5c0aac5..943efdd 100644
--- a/reproduce/src/make/initialize.mk
+++ b/reproduce/src/make/initialize.mk
@@ -55,7 +55,7 @@ pconfdir = reproduce/config/pipeline
# built programs).
sys-path := $(PATH)
sys-rm := $(shell which rm)
-
+curdir := $(shell echo $$(pwd))
# High level environment
@@ -71,11 +71,11 @@ sys-rm := $(shell which rm)
# build here.
.ONESHELL:
.SHELLFLAGS = -ec
-LD_LIBRARY_PATH := .local/lib
-PATH := .local/bin
-LDFLAGS := -L.local/lib
SHELL := .local/bin/bash
-CPPFLAGS := -I.local/include
+LD_LIBRARY_PATH := $(curdir)/.local/lib
+LDFLAGS := -L$(curdir)/.local/lib
+CPPFLAGS := -I$(curdir)/.local/include
+PATH := $(curdir)/.local/bin:$(shell ls -d $$(pwd)/.local/texlive/2018/bin/*)
@@ -211,7 +211,6 @@ $(mtexdir)/initialize.tex: | $(mtexdir)
$(call pvcheck, xz, $(xz-version), XZ Utils, xzversion)
# Bzip2 prints its version in standard error, not standard output!
- echo "here0"
echo "" | bzip2 --version &> $@_bzip2_ver;
v=$$(awk 'NR==1 && /'$(bzip2-version)'/{print "y"; exit 0}' \
$@_bzip2_ver); \
diff --git a/reproduce/src/make/paper.mk b/reproduce/src/make/paper.mk
index eaa1948..aec29c7 100644
--- a/reproduce/src/make/paper.mk
+++ b/reproduce/src/make/paper.mk
@@ -39,7 +39,7 @@ $(texbdir)/paper.bbl: tex/references.tex \
| $(tikzdir) $(texbdir) tex/pipeline.tex
# To find LaTeX (which currently isn't internally installed).
- PATH=$(sys-path)
+ #PATH=$(sys-path)
# We'll run LaTeX first to generate the `.bcf' file (necessary for
# `biber') and then run `biber' to generate the `.bbl' file.
@@ -65,7 +65,7 @@ paper.pdf: tex/pipeline.tex paper.tex $(texbdir)/paper.bbl \
| $(tikzdir) $(texbdir)
# To find LaTeX (which currently isn't internally installed).
- PATH=$(sys-path)
+ #PATH=$(sys-path)
# Go into the top TeX build directory and make the paper.
p=$$(pwd)