File: rules

package info (click to toggle)
racc 1.4.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 876 kB
  • ctags: 1,016
  • sloc: ruby: 6,176; yacc: 2,101; ansic: 815; java: 673; sh: 24; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

docs_html := $(shell find rdoc -type f | sed -e 's/\.rdoc$$/.html/') README.html README.ja.html
rdocs_html := $(shell find rdoc -type f -name '*.rdoc' | sed -e 's/\.rdoc$$/.html/') README.html README.ja.html
export GEM2DEB_TEST_RUNNER = --check-dependencies

%:
	dh $@ --buildsystem=ruby --with ruby

%.html: %.rdoc
	ruby -Ku /usr/bin/rd2 $< -o `echo $< | sed -e 's/\.rdoc$$//'`

override_dh_install: $(docs_html)
	dh_install

override_dh_clean:
	rm -f $(rdocs_html)
	rm -f test/out.log
	dh_clean