File: rules

package info (click to toggle)
empire 1.14-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 460 kB
  • ctags: 561
  • sloc: ansic: 5,317; xml: 1,010; makefile: 113
file content (27 lines) | stat: -rwxr-xr-x 717 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
#!/usr/bin/make -f
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) -Wno-format-security
LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@ --parallel

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS)" PROFILE="$(LDFLAGS)"
	convert -monitor -resize 32x32 vms-empire.png vms-empire.xpm

override_dh_auto_install:
	# Do not use upstream's install target but Debian's install file instead.

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_install:
	mv vms-empire empire
	dh_install

override_dh_auto_clean:
	$(RM) *.o empire vms-empire.xpm

get-orig-source:
	uscan --verbose --download-current-version --force-download