-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 959 Bytes
/
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
32
33
34
35
36
37
MAKEFLAGS += --no-print-directory
# Do not remove this block. It is used by the 'help' rule when
# constructing the help output.
# help:
# help: Redis arXiv Search App Makefile help
# help:
SHELL:=/bin/bash
CONDA_ACTIVATE=source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate
# help: help - display this makefile's help information
.PHONY: help
help:
@grep "^# help\:" Makefile | grep -v grep | sed 's/\# help\: //' | sed 's/\# help\://'
.PHONY: env
env:
@conda create -n arXiv python=3.9 -y
$(CONDA_ACTIVATE) arXiv
@cd backend/ && pip install -r requirements.txt
build_blog:
pelican blog/content -o blog/output -s blog/pelicanconf.py
publish_blog: build_blog
ghp-import blog/output -b gh-pages
git push origin gh-pages
generate_index:
python3 scripts/generate_index.py
load_index:
python3 scripts/load_data.py
download_data:
open https://www.kaggle.com/datasets/Cornell-University/arxiv