File: rules

package info (click to toggle)
m1n1 1.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,468 kB
  • sloc: python: 42,002; ansic: 33,376; asm: 1,101; makefile: 271; xml: 177; sh: 116
file content (27 lines) | stat: -rwxr-xr-x 645 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

DEB_VENDOR_LC = $(shell echo $(DEB_VENDOR) | tr '[:upper:]' '[:lower:]')
LOGO_RADIX = $(CURDIR)/debian/logos/$(DEB_VENDOR_LC)
LOGO_DATA_RADIX = $(CURDIR)/data/$(DEB_VENDOR_LC)

ifneq (,$(wildcard $(LOGO_RADIX)_*))
LOGO_FLAG = LOGO=$(DEB_VENDOR_LC)
endif

override_dh_auto_build:
ifneq (,$(LOGO_FLAG))
	cp -a $(LOGO_RADIX)_128.png $(LOGO_RADIX)_256.png $(CURDIR)/data
endif
	dh_auto_build -- RELEASE=1 $(LOGO_FLAG)

override_dh_auto_clean:
	rm -f $(LOGO_DATA_RADIX)_128.png $(LOGO_DATA_RADIX)_256.png
	dh_auto_clean
	rm -df build