https://github.com/stan-dev/stan
Raw File
Tip revision: ac026fa5ed39aa62ced29206061424036d143c17 authored by Ben Goodrich on 13 August 2014, 15:43:55 UTC
run fix_includes.py from iwyu project on all .hpp files
Tip revision: ac026fa
manual
.PHONY: manual $(STAN_HOME)src/docs/stan-reference/stan-reference.tex

MAJOR_VERSION := $(shell grep MAJOR_VERSION $(STAN_HOME)src/stan/version.hpp | sed -e 's/.*\"\([^]]*\)\".*/\1/g')
MINOR_VERSION := $(shell grep MINOR_VERSION $(STAN_HOME)src/stan/version.hpp | sed -e 's/.*\"\([^]]*\)\".*/\1/g')
PATCH_VERSION := $(shell grep PATCH_VERSION $(STAN_HOME)src/stan/version.hpp | sed -e 's/.*\"\([^]]*\)\".*/\1/g')
VERSION_STRING := $(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_VERSION)


manual: $(STAN_HOME)src/docs/stan-reference/stan-reference.pdf
	mkdir -p doc/
	$(foreach artifact, $^, cp $(artifact) doc/$(basename $(notdir $(artifact)))-$(VERSION_STRING).pdf;)

MANUAL_FLAGS=
%.pdf: %.tex
	cd $(dir $@); pdflatex $(MANUAL_FLAGS) $(notdir $^); bibtex $(notdir $(basename $@)); makeindex -s stan-reference.ist $(notdir $(basename $@)); pdflatex $(MANUAL_FLAGS) $(notdir $^); pdflatex $(MANUAL_FLAGS) $(notdir $^);  pdflatex $(MANUAL_FLAGS) $(notdir $^);

back to top