File: rules

package info (click to toggle)
treil 1.8-2.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,552 kB
  • ctags: 206
  • sloc: sh: 8,849; ruby: 695; ansic: 564; makefile: 60
file content (22 lines) | stat: -rwxr-xr-x 581 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
#!/usr/bin/make -f
# -*- makefile-gmake -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

RUBY = ruby
RUBYLIBDIR = $(shell ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
RUBYARCHDIR = $(shell ruby -rrbconfig -e 'puts RbConfig::CONFIG["archdir"]')

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f config.sub config.guess

override_dh_auto_configure:
	ln -sf /usr/share/misc/config.sub .
	ln -sf /usr/share/misc/config.guess .
	dh_auto_configure -- --with-ruby=$(RUBY) \
	    --with-rubylibdir=$(RUBYLIBDIR) --with-rubyarchdir=$(RUBYARCHDIR)