-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
31 lines (26 loc) · 1.33 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SHELL=/bin/bash
filename=main
out=lsst-dark-matter
tardir=tarball
figdir=./figures
figures=$(figdir)/{dwarf_observability_barplot_*.pdf,StrongMicrolensing.png,bsdm_limits.pdf,annih_limits.pdf,nevents_vs_t.pdf,interactions.pdf,sigmav.pdf,dmbaryon_pk2.png,macho_limits.pdf,halo_mass_redshift_log.png,halo_mass_lensing_sn.pdf,axions.png,alps.jpg,massivestar.png,DMDE-anisotropy.png,LSST_Mmin.pdf,streamgap_constraints_3.png,2045_vla_dec96_x.png,Clone_labeled.png,wdm_constraints_yh.png,Fisher_space_Pk_SIDM_rev.pdf,microlensing_cartoon.png,SIDM_WDM_fig*.pdf,WDM_SIDM_discovery_test.pdf,gagRegionPlot2.pdf,macho_discovery.pdf}
source=$(filename).tex $(filename).bbl $(filename).bib ack.tex discovery.tex endorsers.tex summary.tex intro.tex complement models probes texmf/bst/* texmf/tex/*
main:
#latexmk -g -f -pdf -interaction=nonstopmode main
latexmk -g -pdf $(filename)
cp $(filename).pdf $(out).pdf
plot:
python plotting/plot_macho.py
python plotting/plot_bsdm.py
python plotting/plot_id_ann.py
python plotting/plot_WDM_vs_SIDM.py
tarball: #main
rm -f $(out).tar.gz
mkdir -p $(tardir) $(tardir)/$(figdir)
cp $(figures) $(tardir)/$(figdir)
cp -r $(source) $(tardir)
cp $(filename).pdf $(tardir)
cd $(tardir) && tar -czf ../$(out).tar.gz . && cd ..
#rm -rf $(tardir)
clean:
rm -f *.blg *.fdb_latexmk *.fls main.log main.bbl mainNotes.bib *.aux