Sha256: aa9007dbffb4853d759eec4da56ddd115f11b5c5b688c561311dcbf58c60bdd2

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

# maintainer jobs here, not needed for normal users
all::

.ri/created.rid: ext/mahoro/mahoro.c lib/mahoro/thread_safe.rb
	rdoc --ri -o $(@D) $^

order =
order += Mahoro
order += Mahoro.new
order += Mahoro\#file
order += Mahoro\#buffer
order += Mahoro\#flags=
order += Mahoro\#valid?
order += Mahoro\#compile
order += Mahoro.compile
order += Mahoro::ThreadSafe

www/API: .ri/created.rid
	( \
		for i in $(order); \
		do \
			ri --no-standard-docs -T -d .ri -w 80 "$$i" \
				| col -b \
				| grep -vF $(CURDIR)/.ri; \
		done \
	) > $@

www/API.gz: www/API
	gzip < $< > $@
	touch -r $< $@

www/README.gz: README
	install -p -m 644 README www/
	gzip < $< > $@
	touch -r $< $@

all:: www/API.gz www/README.gz
clean:
	$(RM) www/*

ifneq ($(VERSION),)
gem := mahoro-$(VERSION).gem
$(gem): $(shell git ls-files)
	VERSION=$(VERSION) gem build mahoro.gemspec

tgz := mahoro-$(VERSION).tar.gz
$(tgz): $(shell git ls-files)
	git archive --format=tar --prefix=mahoro-$(VERSION)/ HEAD | \
	  gzip -9 > $@
else
gem tgz:
	@echo >&2 error VERSION not defined
	@false
endif

package: $(gem) $(tgz)

RSYNC = rsync
publish_doc: all
	$(RSYNC) --exclude .gitignore -av \
		www/ yhbt.net:/srv/yhbt/mahoro/

.PHONY: publish_doc package

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mahoro-0.5 GNUmakefile