aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: e89a9e85b29d3cbb2557a29fbf24ab1ed96f3e93 (plain)
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
PYTHON=python2
VERSION=0.2cvs

all:
	$(PYTHON) writeHTML.py anonbib.cfg

clean:
	rm -f *~ */*~ *.pyc *.pyo

update: 
	$(PYTHON) updateCache.py anonbib.cfg

veryclean: clean
	rm -f author.html date.html topic.html bibtex.html tmp.bib

TEMPLATES=_template_.html _template_bibtex.html
CSS=css/main.css css/pubs.css
BIBTEX=anonbib.bib
SOURCE=BibTeX.py config.py metaphone.py reconcile.py updateCache.py \
	writeHTML.py
EXTRAS=TODO README Makefile

DISTFILES=$(TEMPLATES) $(CSS) $(BIBTEX) $(SOURCE) $(EXTRAS)

dist: clean
	rm -rf anonbib-$(VERSION)
	mkdir anonbib-$(VERSION)
	tar cf - $(DISTFILES) | (cd anonbib-$(VERSION); tar xf -)
	mkdir anonbib-$(VERSION)/cache
	tar czf anonbib-$(VERSION).tar.gz anonbib-$(VERSION)
	rm -rf anonbib-$(VERSION)