Basically a fork from https://github.com/blochberger/sokman but with the intention of adding a visual interface as well
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
603 B
31 lines
603 B
.PHONY: all clean
|
|
.SUFFIXES: .dot .pdf .svg .tex
|
|
|
|
DB = db.sqlite3
|
|
DOT = dot
|
|
DOTTOTEX = dot2tex
|
|
MANAGE = ./manage.py
|
|
TAGDAG = $(MANAGE) tagdag --threshold 1
|
|
|
|
all: graphs/citations.svg graphs/sok.svg
|
|
|
|
clean:
|
|
rm -f graphs/*.dot
|
|
rm -f graphs/*.pdf
|
|
rm -f graphs/*.svg
|
|
rm -f graphs/*.tex
|
|
|
|
.dot.pdf:
|
|
$(DOT) -Tpdf -o$*.pdf $<
|
|
|
|
.dot.svg:
|
|
$(DOT) -Tsvg -o$*.svg $<
|
|
|
|
.dot.tex:
|
|
$(DOTTOTEX) -f tikz --usepdflatex $< > $@
|
|
|
|
graphs/citations.dot: $(DB) sok/management/commands/citations.py
|
|
$(MANAGE) citations --pk --min-citations 10 > $@
|
|
|
|
graphs/sok.dot: $(DB) sok/management/commands/tagdag.py
|
|
$(TAGDAG) > $@
|
|
|