-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
30 lines (27 loc) · 1 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
REVISION := $(shell git describe --dirty --always)
REMOTE := $(shell git config --get remote.origin.url)
TARBALL := O3-1_v6
ARXIV := arxiv_v1
all:
pdflatex O3-1.tex
bibtex O3-1
pdflatex O3-1
pdflatex O3-1
# For ADASS submission
tarball:
@rm -rf $(TARBALL)
@mkdir $(TARBALL)
@echo "Generated from revision '$(REVISION)' of '$(REMOTE)'" > $(TARBALL)/README.md
@cp -a O3-1*.eps O3-1.tex O3-1.bib copyright/aspcs_copyright_form.pdf $(TARBALL)
@tar cjvf $(TARBALL).tar.gz $(TARBALL)
@echo The manuscript has been tarballed into $(TARBALL).tar.gz
# For arXiv submission
arxiv:
@rm -rf $(ARXIV)
@mkdir $(ARXIV)
@echo "Generated from revision '$(REVISION)' of '$(REMOTE)'" > $(ARXIV)/README.md
@cp -a asp2014.sty pdf_figures/O3-1*.pdf O3-1.tex O3-1.bib O3-1.bbl $(ARXIV)
@./format-author-list.bash O3-1.tex > $(ARXIV)/author_list.txt
@tar cjvf $(ARXIV).tar.gz $(ARXIV)
@echo The arXiv ready manuscript has been tarballed into $(ARXIV).tar.gz
@echo The author list in the proper format is in $(ARXIV)/author_list.txt