PKG = optparse
CHANGELOG = ChangeLog
optparse-RD2HTMLFLAGS = --html-title='OptionParser for Ruby'
RMI = rmi
ifneq ($(wildcard Makerules),)
include Makerules
else
ifneq ($(wildcard ../Makerules),)
include ../Makerules
endif
endif

html: FIRSTSTEP.ja.html
$(PKG).tarball: doc
optparse.en.rd: optparse.rb
	ruby -n -e 'print if /^=begin\b/../^=end/' $< > $@

install-more:: install
	@ruby -r rbconfig -r ftools \
	-e 'dest = File.join(Config::CONFIG["sitedir"], "optparse")' \
	-e 'File::makedirs(dest)' \
	-e 'Dir["optparse/*.rb"].each do |rb| File::install(rb, dest, 0644, true) end'

clean::
	rm -f FIRSTSTEP.ja.html
