File: rules

package info (click to toggle)
ruby-aws 2.10.2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 744 kB
  • ctags: 1,028
  • sloc: ruby: 7,748; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 703 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
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies

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

# We are renaming aws to ruby-aws and then cleaning up after the gem is installed
override_dh_auto_install:
	mkdir -p $(CURDIR)/lib/ruby-aws
	cp $(CURDIR)/lib/version.rb $(CURDIR)/lib/ruby-aws
	mv $(CURDIR)/lib/version.rb $(CURDIR)/debian
	mv $(CURDIR)/lib/aws.rb $(CURDIR)/lib/ruby-aws.rb
	dh_auto_install
	mv $(CURDIR)/lib/ruby-aws.rb $(CURDIR)/lib/aws.rb

clean:
	mkdir -p $(CURDIR)/lib/ruby-aws
	if [ -f $(CURDIR)/debian/version.rb ]; then mv $(CURDIR)/debian/version.rb $(CURDIR)/lib; fi
	cp -f $(CURDIR)/lib/version.rb $(CURDIR)/lib/ruby-aws
	dh_clean
	rm -rf lib/ruby-aws/version.rb