Commit da271843 authored by Felix Morgner's avatar Felix Morgner
Browse files

make: pass shell to sub-make

parent b59a7cd4
Pipeline #599 failed with stage
in 4 minutes and 30 seconds
.PHONY: all clean dist-clean
SHELL:=bash
export DOCUMENT:=constificator
DOCUMENT=constificator
export DOCUMENT
QPDF:=$(shell command -v qpdf 2>/dev/null)
VENV:=$(shell command -v virtualenv 2>/dev/null)
QPDF=$(shell command -v qpdf 2>/dev/null)
VENV=$(shell command -v virtualenv 2>/dev/null)
.PHONY: all clean dist-clean
all: copy
@echo "Build complete!"
......@@ -12,19 +12,20 @@ all: copy
clean:
@echo "Cleaning LaTeX artifacts..."
@$(MAKE) -C latex clean
@$(MAKE) SHELL=$(SHELL) -C latex clean
@echo "Removing generated PDF files..."
@rm -f generated/pdf/*.pdf
dist-clean: clean
@echo "Cleaning virtualenv..."
@rm -rf python/env
@echo "Removing generated PDF files..."
@rm -f generated/pdf/*.pdf
@echo "Removing remaining untracked files..."
@echo "Removing untracked files..."
@git clean -fdx &>/dev/null
compile: dirs virtualenv
@echo "Building LaTeX document..."
@source python/env/bin/activate && $(MAKE) -C latex
@source python/env/bin/activate && $(MAKE) SHELL=$(SHELL) -C latex
copy: compile
ifdef QPDF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment