File: rules

package info (click to toggle)
stlcmd 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 472 kB
  • sloc: cpp: 7,181; makefile: 62
file content (25 lines) | stat: -rwxr-xr-x 597 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
#!/usr/bin/make -f
%:
	dh $@

DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

ifeq ($(origin CC),default)
CC := $(DEB_HOST_GNU_TYPE)-g++
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_clean:
	dh_clean
	rm -rf man

override_dh_auto_build:
	$(MAKE) CC=$(CC)
	$(MAKE) docs

override_dh_auto_install:
	$(MAKE) DESTDIR=$$(pwd)/debian/stlcmd prefix=/usr install
	$(MAKE) DESTDIR=$$(pwd)/debian/stlcmd prefix=/usr installDocs
	mkdir -p $$(pwd)/debian/stlcmd/usr/share/doc/stlcmd
	gzip -n -c -9 CHANGES > $$(pwd)/debian/stlcmd/usr/share/doc/stlcmd/changelog.gz