File: rules

package info (click to toggle)
ruby-sdl 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,548 kB
  • sloc: cpp: 7,598; ansic: 4,498; ruby: 2,246; makefile: 110; sh: 102
file content (25 lines) | stat: -rwxr-xr-x 770 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
#!/usr/bin/make -f

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

override_dh_auto_build:
	( cd $(CURDIR)/doc    && $(MAKE) && $(MAKE) install )
	( cd $(CURDIR)/doc-en && $(MAKE) && $(MAKE) install )
	cp -f $(CURDIR)/sample/caption.rb $(CURDIR)/caption.rb.eucjp && \
	nkf -w $(CURDIR)/caption.rb.eucjp \
	| sed -e 's/euc-jp/utf-8/' > $(CURDIR)/sample/caption.rb

override_dh_installchangelogs:
	dh_installchangelogs --all --keep $(CURDIR)/NEWS.en

override_dh_installexamples:
	dh_installexamples -Xicon.bmp.gz -Xsample.ttf

override_dh_auto_clean:
	dh_auto_clean
	-@rm -f $(CURDIR)/*.html
	-@rm -f $(CURDIR)/*.rd
	-@( cd $(CURDIR)/doc    && rm -f *.rd *.html )
	-@( cd $(CURDIR)/doc-en && rm -f *.rd *.html )
	-@mv -f $(CURDIR)/caption.rb.eucjp $(CURDIR)/sample/caption.rb