File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,25 @@ ANNOTATIONS_DIR = $(DATA_DIR)/annotations
3
3
ARCHIVES_DIR = $(DATA_DIR ) /arxiv/sources
4
4
UNPACKED_DIR = $(DATA_DIR ) /arxiv/unpacked_sources
5
5
HTMLS_DIR = $(DATA_DIR ) /arxiv/htmls
6
+ TABLES_DIR = $(DATA_DIR ) /arxiv/tables
6
7
7
8
ARCHIVES = $(wildcard $(ARCHIVES_DIR ) /* )
8
9
UNPACKS = $(patsubst $(ARCHIVES_DIR ) /% ,$(UNPACKED_DIR ) /% ,$(ARCHIVES ) )
9
10
HTMLS = $(patsubst $(ARCHIVES_DIR ) /% ,$(HTMLS_DIR ) /% .html,$(ARCHIVES ) )
11
+ TABLES = $(patsubst $(ARCHIVES_DIR ) /% ,$(TABLES_DIR ) /% ,$(ARCHIVES ) )
10
12
11
- $(shell mkdir -p "$(DATA_DIR)")
12
- $(shell mkdir -p "$(HTMLS_DIR)")
13
+ $(shell mkdir -p "$(DATA_DIR)" "$(HTMLS_DIR)" "$(TABLES_DIR)")
13
14
14
15
.PHONY : all
15
- all : $(ANNOTATIONS_DIR ) /pdfs-urls.csv $(ANNOTATIONS_DIR ) /sources-urls.csv convert_all
16
+ all : $(ANNOTATIONS_DIR ) /pdfs-urls.csv $(ANNOTATIONS_DIR ) /sources-urls.csv extract_all
17
+
18
+ extract_all : $(TABLES )
16
19
17
20
convert_all : $(HTMLS )
18
21
22
+ $(TABLES ) : $(TABLES_DIR ) /% : $(HTMLS_DIR ) /% .html
23
+ python ./extract_tables.py $^ --outdir $(TABLES_DIR )
24
+
19
25
$(HTMLS ) : $(HTMLS_DIR ) /% .html: $(UNPACKED_DIR ) /%
20
26
./docker-latex2html.sh $(HTMLS_DIR ) $^
21
27
You can’t perform that action at this time.
0 commit comments