File: rules

package info (click to toggle)
adequate 0.15.6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 344 kB
  • sloc: perl: 1,129; python: 351; makefile: 113; sh: 89; ansic: 29
file content (24 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_clean:
	$(MAKE) -C doc/ clean
	$(MAKE) -C tests/ clean

override_dh_auto_build:
	$(MAKE) -B -C doc/

override_dh_auto_test:
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
	adt_adequate=./adequate adt_testpkg=dpkg debian/tests/smoke-test
	$(MAKE) -C tests/ changes
endif

execute_after_dh_install:
	sed -i \
		-r -e 's/^(our \$$VERSION) =.*/\1 = "$(DEB_VERSION)";/' \
		debian/*/usr/bin/*