File: rules

package info (click to toggle)
xdaliclock 2.44%2Bdebian-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,688 kB
  • sloc: ansic: 4,935; sh: 2,851; makefile: 676
file content (28 lines) | stat: -rwxr-xr-x 755 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CFLAGS += -Wall -g
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)

override_dh_auto_configure:
	cd X11 && ( CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)"  ./configure \
		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr --mandir=/usr/share/man )

override_dh_auto_build:
	cd X11 && $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)"

override_dh_auto_clean:
	[ ! -f X11/Makefile ] || ( cd X11 && $(MAKE) distclean )

override_dh_auto_install:
	dh_installdirs usr/share/man/man1 usr/bin
	cd X11 && $(MAKE) install_prefix=$(CURDIR)/debian/xdaliclock install

%:
	dh $@ --with