Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Create XML files from PDFs as the XML files can more reliably be examined.
PDF_FILES=$(wildcard *.pdf)
XML_FILES=$(patsubst %.pdf, %.xml, $(PDF_FILES))
TXT_FILES=$(patsubst %.pdf, %-extracted.txt, $(PDF_FILES))
# Generate TXT files from XML files.
.PHONY : txt
txt : $(TXT_FILES)
# Extract concept list from XML.
%-extracted.txt : %.xml
python extract-concepts.py $<
# Generate XML files.
.PHONY : xml
xml : $(XML_FILES)
# Convert PDF to XML.
%.xml : %.pdf
pdftohtml -xml $<
# Show the files the Makefile will operate on.
.PHONY : variables
variables :
@echo Input PDF_FILES: $(PDF_FILES)
@echo Output XML_FILES: $(XML_FILES)
.PHONY : clean
clean :
rm -f *.xml *-extracted.txt