# Default version: this assumes that you only have the CC BY-SA files.
ccbysa:
#	wget -O Awesome_gravity_SDSS_J1138plus2754.jpg https://upload.wikimedia.org/wikipedia/commons/a/ad/Awesome_gravity_SDSS_J1138%2B2754.jpg
	pdflatex RubinLSST_cosmography.tex && pdflatex RubinLSST_cosmography.tex

# Non-free version: this assumes that you have added the files
#	    paper/decel_dipole_AllZ_JLA_nobias.png
#	    paper/decel_dipole_AllZ_Pantheon.png
# from https://arxiv.org/format/2205.12692
nonfree:
	sed -e 's/toggletrue{EnableCCBYSA/togglefalse{EnableCCBYSA/' \
	   RubinLSST_cosmography.tex > RubinLSST_cosmography_nonfree.tex
	pdflatex RubinLSST_cosmography_nonfree.tex && pdflatex RubinLSST_cosmography_nonfree.tex

tgz:
	tar -cvj -f 20250917_RubinLSST_cosmography.tbz Makefile RubinLSST_cosmography.tex url.png
	ls -l 20250917_RubinLSST_cosmography.tbz

# %source: https://arxiv.org/format/2205.12692
tgz_nonfree:
	tar -cvj -f 20250917_RubinLSST_cosmography_nonfree.tbz Makefile RubinLSST_cosmography.tex url.png \
	    decel_dipole_AllZ_JLA_nobias.png \
	    decel_dipole_AllZ_Pantheon.png
	ls -l 20250917_RubinLSST_cosmography_nonfree.tbz

clean:
	rm -f *.pdf fig/*.pdf *.toc *.log *.nav *.snm *.aux *.out
# last line
