Sha256: 50f14870bf983004245a64103b6d1ba8053f74fb996e2216f53733cbc666fbaa

Contents?: true

Size: 1.45 KB

Versions: 5

Compression:

Stored size: 1.45 KB

Contents

# Copyright (C) 2015-2016 all contributors <olddoc-public@80x24.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
all::
pkg = olddoc
RUBY = ruby
GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
	@./GIT-VERSION-GEN
-include GIT-VERSION-FILE

check-warnings:
	@(for i in $$(git ls-files '*.rb'| grep -v '^setup\.rb$$'); \
	  do $(RUBY) -d -W2 -c $$i; done) | grep -v '^Syntax OK$$' || :

pkggem := pkg/$(pkg)-$(VERSION).gem
fix-perms:
	git ls-tree -r HEAD | awk '/^100644 / {print $$NF}' | xargs chmod 644
	git ls-tree -r HEAD | awk '/^100755 / {print $$NF}' | xargs chmod 755
gem-man:
	$(MAKE) -C Documentation/ gem-man

pkg_extra := NEWS

.manifest: fix-perms
	$(RUBY) -I lib bin/olddoc prepare
	rm -rf man
	(git ls-files; \
	 for i in $(pkg_extra); do echo $$i; done) | \
	 LC_ALL=C sort > $@+
	cmp $@+ $@ || mv $@+ $@; rm -f $@+

placeholders := olddoc_5 olddoc_1

$(placeholders):
	echo olddoc_placeholder > $@

.gem-manifest: .manifest gem-man $(placeholders)
	(ls man/*.?; cat .manifest) | LC_ALL=C sort > $@+
	cmp $@+ $@ || mv $@+ $@; rm -f $@+

doc: $(placeholders)
	$(MAKE) -C Documentation html
	rm -rf doc
	olddoc prepare
	rdoc --debug -f oldweb
	olddoc merge
	ln NEWS.atom.xml doc/

gem: $(pkggem)

install-gem: $(pkggem)
	gem install --local $(CURDIR)/$<

$(pkggem): fix-perms .gem-manifest
	VERSION=$(VERSION) gem build $(pkg).gemspec
	mkdir -p pkg
	mv $(@F) $@

package: $(pkggem)

.PHONY: all .FORCE-GIT-VERSION-FILE NEWS
.PHONY: check-warnings fix-perms doc

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
olddoc-1.6.0 GNUmakefile
olddoc-1.5.1 GNUmakefile
olddoc-1.5.0 GNUmakefile
olddoc-1.4.0 GNUmakefile
olddoc-1.3.0 GNUmakefile