templates/neurips2025/Makefile
templates/neurips2025/MakefileBrowse 56 files
373 tokens
1,054 bytes
Token encoding: o200k_base
Snapshot 24fd22b
← Back to SKILL.md
1FIGURES_FOLDER := figures2PDFS := \3$(filter-out $(wildcard $(FIGURES_FOLDER)/*-crop.pdf),$(wildcard $(FIGURES_FOLDER)/*.pdf)) \4$(filter-out $(wildcard $(FIGURES_FOLDER)/**/*-crop.pdf),$(wildcard $(FIGURES_FOLDER)/**/*.pdf))5CROPPED_PDFS := $(PDFS:.pdf=-crop.pdf)6 7all: main.pdf8 9%.pdf: %.tex Makefile $(CROPPED_PDFS)10 pdflatex -synctex=1 -interaction=nonstopmode $<11 -bibtex $*.aux12 pdflatex -synctex=1 -interaction=nonstopmode $<13 pdflatex -synctex=1 -interaction=nonstopmode $<14 15.PHONY: figures16figures: $(CROPPED_PDFS)17 18.PRECIOUS: $(CROPPED_PDFS)19%-crop.pdf: %.pdf Makefile20 pdfcrop $<21 22.PHONY: clean upgrade23clean:24 find . -maxdepth 1 \25 \( -name "*.aux" -o -name "*.bbl" -o -name "*.blg" -o \26 -name "*.log" -o -name "*.out" -o -name "*.pdf" -o \27 -name "*.synctex.gz" \) | xargs $(RM)28 find $(FIGURES_FOLDER) -name "*-crop.pdf" | xargs $(RM)29 30YEAR := 202531 32upgrade:33 curl -O https://media.neurips.cc/Conferences/NeurIPS$(YEAR)/Styles.zip34 unzip -u Styles.zip35 mv Styles/neurips_${YEAR}.sty neurips.sty36 $(RM) -r Styles.zip Styles37