File: Makefile

package info (click to toggle)
libwebapp-ruby 0.4-2.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 240 kB
  • sloc: ruby: 2,245; makefile: 79
file content (32 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
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
26
27
28
29
30
31
32
RUBY=ruby
RD2HTML=rd2 -r rd/rd2html-lib.rb
DESTDIR=

RUBYLIBDIR = $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')

RB = webapp.rb $(RB1)
RB1 = $(wildcard webapp/*.rb)

all: README.html doc/index.html

README.html: README.rd
	$(RD2HTML) --html-title='webapp - easy-to-use CGI/FastCGI/mod_ruby interface' -o README README.rd

check test:
	$(RUBY) -I. test-all.rb

install:
	mkdir -p $(DESTDIR)$(RUBYLIBDIR)/webapp
	install -m 644 webapp.rb $(DESTDIR)$(RUBYLIBDIR)
	for f in $(RB1); do \
           install -m 644 $$f $(DESTDIR)$(RUBYLIBDIR)/webapp; \
	done

.PHONY: check test all install clean

doc/index.html: $(RB) $(RB1)
	rm -rf doc
	rdoc $(RB) $(RB1)

clean:
	rm -rf doc README.html