File: rules

package info (click to toggle)
awesome 4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,112 kB
  • sloc: ansic: 14,500; sh: 525; makefile: 46
file content (24 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=cmake --builddirectory=build

override_dh_auto_configure: debian/awesome.xpm
	dh_auto_configure -- -DSYSCONFDIR=/etc

debian/awesome.xpm: icons/awesome32.png
	convert $< $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# run unit tests here.
	# the generic check target also runs integration tests,
	# which are better suited as autopkgtest.
	$(MAKE) -C build check-unit
endif

override_dh_installchangelogs:
	install -D -T docs/89-NEWS.md debian/awesome/usr/share/doc/awesome/NEWS
	dh_installchangelogs