# Makefile to update the electronic bibliographies # Jean-Philippe.Vert@mines.org # January 30, 2002 # the main file is bibli.bib BIBLI = bibli SRCBIBLI = ../$(BIBLI).bib # the different categories in the "subject" field of the bibtex entries SUBJECTS = chemogenomics biogm biosvm sirna dimred cancer information-theory source-coding conditional-random-field qsar bio stat ml it kernel bionet net compnet biokernel microarray casp prot plasmodium chemoinformatics csbcbook csbcbook-ch1 csbcbook-ch2 csbcbook-ch3 csbcbook-ch4 csbcbook-ch5 csbcbook-ch6 csbcbook-ch7 csbcbook-ch8 csbcbook-ch9 ngs rnaseq hic all: $(BIBLI:=.html) $(SUBJECTS:=.html) chmod 755 *.html *.bib # Create *.bib files for each category $(SUBJECTS:=.bib): $(SRCBIBLI) bib2bib $^ -c 'subject:"$(@:.bib=)" or keywords:"$(@:.bib=)"' -ob tmp.bib ; ./addpdfpath.pl < tmp.bib > $@ ; rm tmp.bib # Create a .html file from a .bib file $(SUBJECTS:=.html): %.html:%.bib bibtex2html -bg white -both -use-keys --sort-by-date -t "$* references" $< ; chmod 755 $@ $(BIBLI:=.html): $(SRCBIBLI) ./addpdfpath.pl < $(SRCBIBLI) > $(BIBLI:=.bib) ; bibtex2html -bg white -both -use-keys --sort-by-date -t "$* references" $(BIBLI:=.bib) clean: rm -f *.bib *.html