File: GNUmakefile

package info (click to toggle)
liboptparse-ruby 0.8.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 428 kB
  • ctags: 644
  • sloc: ruby: 1,819; makefile: 47
file content (25 lines) | stat: -rw-r--r-- 616 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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