Sha256: 8ef9dc9a8b430353652f3c6ee24a9db6b9fc28c10846ecd79a9a3fbca7bb3609

Contents?: true

Size: 1.17 KB

Versions: 340

Compression:

Stored size: 1.17 KB

Contents

SRC  := $(wildcard draft-*.adoc)
TXT  := $(patsubst %.adoc,%.txt,$(SRC))
XML  := $(patsubst %.adoc,%.xml,$(SRC))
HTML := $(patsubst %.adoc,%.html,$(SRC))
NITS := $(patsubst %.adoc,%.nits,$(SRC))

SHELL := /bin/bash
# Ensure the xml2rfc cache directory exists locally
IGNORE := $(shell mkdir -p $(HOME)/.cache/xml2rfc)

all: $(TXT) $(HTML) $(XML) $(NITS)

clean:
	rm -f $(TXT) $(HTML) $(XML)

%.xml: %.adoc
	#bundle exec asciidoctor -r ./lib/glob-include-processor.rb -r asciidoctor-rfc -b rfc2 $^ --trace > $@
	bundle exec asciidoctor -r ./lib/glob-include-processor.rb -r asciidoctor-rfc -b rfc2 -a flush-biblio=true $^ --trace > $@

%.xml3: %.adoc
	#bundle exec asciidoctor -r ./lib/glob-include-processor.rb -r asciidoctor-rfc -b rfc2 $^ --trace > $@
	bundle exec asciidoctor -r ./lib/glob-include-processor.rb -r asciidoctor-rfc -b rfc3 -a flush-biblio=true $^ --trace > $@

%.txt: %.xml
	xml2rfc --text $^ $@

%.html: %.xml
	xml2rfc --html $^ $@

%.nits: %.txt
	VERSIONED_NAME=`grep :name: $*.adoc | cut -f 2 -d ' '`; \
	cp $^ $${VERSIONED_NAME}.txt && \
	idnits --verbose $${VERSIONED_NAME}.txt > $@ && \
	cp $@ $${VERSIONED_NAME}.nits && \
	cat $${VERSIONED_NAME}.nits

open:
	open *.txt

Version data entries

340 entries across 334 versions & 4 rubygems

Version Path
metanorma-standoc-3.0.3 Makefile
metanorma-standoc-3.0.2 Makefile
metanorma-standoc-3.0.0 Makefile
metanorma-standoc-2.10.5 Makefile
metanorma-standoc-2.10.4 Makefile
metanorma-standoc-2.10.3 Makefile
metanorma-standoc-2.10.2 Makefile
metanorma-standoc-2.10.1 Makefile
metanorma-standoc-2.10.0 Makefile
metanorma-standoc-2.9.10 Makefile
metanorma-standoc-2.9.9 Makefile
metanorma-standoc-2.9.8 Makefile
metanorma-standoc-2.9.7 Makefile
metanorma-standoc-2.9.6 Makefile
metanorma-standoc-2.9.5 Makefile
metanorma-standoc-2.9.4 Makefile
metanorma-standoc-2.9.3 Makefile
metanorma-standoc-2.9.2 Makefile
metanorma-standoc-2.9.1 Makefile
metanorma-standoc-2.9.0 Makefile