Sha256: 7daae7e2635937abb25c6f59f381d44801b2e051040118d156febb913a36dc63

Contents?: true

Size: 592 Bytes

Versions: 7

Compression:

Stored size: 592 Bytes

Contents

all::

PANDOC = pandoc
PANDOC_OPTS = -f markdown --email-obfuscation=none --sanitize-html
pandoc = $(PANDOC) $(PANDOC_OPTS)
pandoc_html = $(pandoc) --toc -t html --no-wrap

man1 := $(addsuffix .1,rainbows)
html1 := $(addsuffix .html,$(man1))

all:: html man

html: $(html1)
man: $(man1)

install-html: html
	mkdir -p ../doc/man1
	install -m 644 $(html1) ../doc/man1

install-man: man
	mkdir -p ../man/man1
	install -m 644 $(man1) ../man/man1

%.1: %.1.txt
	$(pandoc) -s -t man < $< > $@+ && mv $@+ $@
%.1.html: %.1.txt
	$(pandoc_html) < $< > $@+ && mv $@+ $@

clean::
	$(RM) $(man1) $(html1)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rainbows-0.6.0 Documentation/GNUmakefile
rainbows-0.5.0 Documentation/GNUmakefile
rainbows-0.4.0 Documentation/GNUmakefile
rainbows-0.3.0 Documentation/GNUmakefile
rainbows-0.2.0 Documentation/GNUmakefile
rainbows-0.1.1 Documentation/GNUmakefile
rainbows-0.1.0 Documentation/GNUmakefile