You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
828 B
Makefile

FORMAT ?= rst
EXTENSION ?= txt
all: clean cnpl nvpl cnpl-na nvpl-na
cnpl:
xml ed -d "/article/info" template.xml | pandoc -f docbook -t $(FORMAT) -s -o cnpl.$(EXTENSION)
nvpl:
xml ed -d "/article/info" template.xml | xml ed -d "*/*/*[@role='restriction-cooperative']" | pandoc -f docbook -t $(FORMAT) -s -o nvpl.$(EXTENSION)
cnpl-na:
xml ed -d "/article/info" template.xml | xml ed -d "*/*/*[@role='restriction-attribution']" | pandoc -f docbook -t $(FORMAT) -s -o cnpl-na.$(EXTENSION)
nvpl-na:
xml ed -d "/article/info" template.xml | xml ed -d "*/*/*[@role='restriction-attribution']" | xml ed -d "*/*/*[@role='restriction-cooperative']" | pandoc -f docbook -t $(FORMAT) -s -o nvpl-na.$(EXTENSION)
clean:
rm -rf nvpl.$(EXTENSION)
rm -rf cnpl.$(EXTENSION)
rm -rf cnpl-na.$(EXTENSION)
rm -rf nvpl-na.$(EXTENSION)