File: rules

package info (click to toggle)
deepin-icon-theme 2025.03.27-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 237,772 kB
  • sloc: sh: 432; python: 173; makefile: 67
file content (32 lines) | stat: -rwxr-xr-x 913 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
25
26
27
28
29
30
31
32
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

# See https://github.com/archlinux/svntogit-community/blob/packages/deepin-icon-theme/trunk/PKGBUILD

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND =


%:
	dh $@ --no-parallel

execute_before_dh_auto_build:
	$(MAKE) hicolor-links

execute_after_dh_auto_install:
	cp -a ./Sea ./usr/share/icons/hicolor ./debian/deepin-icon-theme/usr/share/icons/

execute_after_dh_fixperms:
	find $(CURDIR)/debian/ -name '*.svg' -exec chmod -x {} \;
	find $(CURDIR)/debian/ -name '*.theme' -exec chmod -x {} \;

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGELOG.md