Skip to content

Commit

Permalink
Merge pull request #313 from LSSTDESC/fixmkauth
Browse files Browse the repository at this point in the history
Fix issue with `pip` always trying to reinstall `mkauthlist` dependencies
  • Loading branch information
philbull committed Feb 12, 2018
2 parents 915ae8d + a657981 commit 75b72bc
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions doc/0000-ccl_note/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,15 @@ tar : main
cd ${tardir} && tar -czf ../${outname}.tar.gz . && cd ..
rm -rf ${tardir}

authlist :
pip install --upgrade mkauthlist
authlist : mkauthlist-exists
#pip install --upgrade mkauthlist
ifdef MKAUTHLIST
$(MKAUTHLIST) -j ${style} -f -c "LSST Dark Energy Science Collaboration" \
--cntrb contributions.tex authors.csv authors.tex
else
mkauthlist -j ${style} -f -c "LSST Dark Energy Science Collaboration" \
--cntrb contributions.tex authors.csv authors.tex
endif

# http://stackoverflow.com/q/8028314/
TARGETS=apj apjl prd prl mnras tex aastex61 emulateapj
Expand All @@ -96,6 +101,12 @@ $(TARGETS):
# (which is to say, by default we assume you are writing an LSST
# DESC Note in latex format).

# Check if mkauthlist exists. Can be overridden with environment variable.
mkauthlist-exists :
ifndef MKAUTHLIST
$(if $(shell which mkauthlist),,$(error "mkauthlist not found. Install using 'pip install mkauthlist'"))
endif

tidy:
rm -f *.log *.aux *.out *.dvi *.synctex.gz *.fdb_latexmk *.fls
rm -f *.bbl *.blg *Notes.bib ${main}.pdf
Expand Down

0 comments on commit 75b72bc

Please sign in to comment.