-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 697 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 697 Bytes
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
# I want to split the main library into subsets automatically,
# but I assume we already have the splits, which makes it easier
# to identify the targets.
SPLITS = $(shell ls [a-z]*/*.bib | sed 's/ /\\ /g')
.PHONY: default all
default: fix split small
.PHONY: fix
fix: library.log
library.log: library.bib library.py */*.pdf
./library.py fix > library.log
.PHONY: split
split: $(SPLITS)
$(SPLITS): library.bib library.py
./library.py split "$@" > /dev/null
.PHONY: small
small: library.small.bib
library.small.bib: library.bib
cat library.bib | sed '/^\tabstract = .*/d' \
| sed '/^\tlocalfile = .*/d' > library.small.bib
.PHONY: clean
clean:
rm -rvf library.small.bib