File: rules

package info (click to toggle)
rails 2%3A6.0.3.7%2Bdfsg-2%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 70,976 kB
  • sloc: ruby: 271,623; javascript: 19,043; yacc: 46; sql: 43; makefile: 28; sh: 18
file content (39 lines) | stat: -rwxr-xr-x 1,090 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
33
34
35
36
37
38
39
#!/usr/bin/make -f

export DH_RUBY = --gem-install

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

override_dh_auto_build:
	racc -o actionpack/lib/action_dispatch/journey/parser.rb \
		actionpack/lib/action_dispatch/journey/parser.y
	cd activestorage && rollup -c && cd -
	cd actionview && blade build && cd -
	cd actioncable && rake -Ilib assets:codegen && cd -

override_dh_clean:
	dh_clean -X~ -X.bak
	$(RM) -r railties/guides/output
	# kill redis server for tests, don't fail if not started
	debian/stop-redis-server.sh || true
	
override_dh_auto_install:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	# start redis server for tests (gem2deb runs test during install)
	debian/start-redis-server.sh
endif
	# auto install
	dh_auto_install -O--buildsystem=ruby
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	# kill redis server used for tests
	debian/stop-redis-server.sh	
endif
	$(RM) debian/ruby-activesupport/usr/bin/generate_tables
	$(RM) debian/*/usr/bin/test
	rmdir debian/*/usr/bin || true

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),)
	dh_auto_test
endif